JSI Tip 9732. Some additional command-line freeware.

Download CmdUtils.zip.

The ReadMe.txt file begins with:

CmdUtils -- (c) 1998-2000 Matt Ginzton, MaDdoG Software
collection release 1.5: 5/28/2000
Web site: http://www.maddogsw.com/

A collection of a few free utilities to make life at the Win9x/NT command line a bit easier and more flexible. Source code included. CmdUtils currently include: -- Recycle, a safe replacement for the DEL command, that sends files to the recycle bin instead of deleting them. Recycle is also more flexible than DEL; you can specify multiple files at once (or use wildcards), and you can recycle whole directories at once (be careful!) -- PropsFor, which displays the shell Properties dialog for all files (or folders, or drives) that you specify on the command line. PropsFor also accepts multiple files at once, either individually or as wildcards. -- ContextMenu (context.exe), which displays the shell context menu for the specified file(s); from here, with one more step, you can get Properties, Quick View, or any other supported action for the specified file(s). -- Bin (bin.exe), which manipulates the recycle bin. Caveat: it uses Windows functions that are not available unless you have Internet Explorer 4.0, Win98, or WinNT 5.0, and under Win98 they appear to be a bit buggy. So you can't even use bin unless you're running one of these recent Windows versions, and even then, if you run "bin /empty" and then cancel, "bin /size" may report that the bin is empty but this is not true, and "bin /empty" may not do anything at all. However "bin /empty /force" will still empty the recycle bin. This appears to be Windows' fault. -- FixP, which fixes the command-line prompt under WinNT after you've run a 16-bit app. (It'll work under Win95, too, but it's totally unnecessary -- Win95 does this anyway.) Ever notice how, after you run a 16-bit app from a directory with a long filename, the prompt starts using the shortname? If you think this looks lame, just run fixp. -- CmdUtils-Source.zip: full source code to all of the above. For more details, run each program with /? on the command line to list options and other information. Usage notes:

======= I suggest that you place these utilities in a directory on your PATH -- Win95 users, try C:\WINDOWS\COMMAND (or the COMMAND subdirectory of your Windows directory, if it's not C:\WINDOWS). WinNT users, try C:\WINNT, or your WinNT directory, if you don't already have a utilities directory on your path. If you find these utilities useful on a daily basis, feel free to rename them to make the names easier to type -- for example, pf.exe instead of PropsFor.exe; cm.exe instead of Context.exe, etc. However, please distribute them under their full names so that they can be more easily identified. You can also use doskey to create aliases for these commands: doskey del=recycle $* will replace the del command with recycle.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.