Posts Tagged ‘cmd’

Weird, that bat file path doesn’t jive from the toolbar

I just noticed something when running some batch files on Windows 7. If I launch the file from Windows Explorer, the path in the command window matches the location of the batch file.

Bat file path and cmd paths match when you double click it

The paths, they match!

However, I typically launch my batch files from a toolbar on my taskbar that points to the same folder.  The batch file still works, but the path shown in the command window is weird.  I have no idea how an Adobe Version Cue path could get injected, but it does.

Launching a bat from a toolbar injects a path to Adobe Version Cue?

Weird paths

To capture both shots of the command window I had to hit Pause.  These aren’t faked, they’re just completely random.

XCOPY script maker utility

Here is an old utility project I started a few years ago to help make XCOPY scripts.  It’s an HTA ( HTML Application ) so it currently only runs in Internet Explorer.  Normally I wouldn’t release IE only code, but XCOPY is a windows only utility, and this is really just a quick and dirty little tool.

Usage is simple :

  1. Open with Internet Explorer
  2. Point and click through the options
  3. Click the ‘Make Script’ button

From here you can paste the xcopy script directly onto the command line, or into notepad and Save As “yourfile.bat”.

Download xcopier here

XCOPY maker in action

XCOPY maker in action

How to find files quickly using the DIR command

How to find files quickly using the DIR command.

Here’s a quick way to find files on your windows machine using the command line, instead of the built in search functionality.

  1. Drop to a command line.
  2. CD your way to the folder you want to search.
  3. Type “dir /S *your file name here*
  4. Hit enter.

So if you wanted to find that hot track on your mp3 drive but don’t know where it’s located, you could do something like this : “dir /S *humps*.mp3″