Copyright © 2003-2010 by Prof. Timo Salmi  
Last modified Sat 15-May-2010 17:27:04

Assorted NT/2000/XP/.. CMD.EXE Script Tricks
From the html version of the tscmd.zip 1cmdfaq.txt file
To the Description and the Index

This page is edited from the 1cmdfaq.txt faq-file contained in my tscmd.zip command line interface (CLI) collection. That zipped file has much additional material, including a number of detached .cmd script files. It is recommended that you also get the zipped version as a companion.

Please see "The Description and the Index page" for the conditions of usage and other such information.

112} Help, an old program fails to run since I have no floppy drive.

Q: I am trying trun an old program. But it fails since the program requires a disk present in the floppy drive A: which I do not have.

A: This trick sometimes works if the old program just wants to have a floppy present to write to
  @echo off & setlocal enableextensions
  mkdir C:\_A
  subst A: C:\_A
  subst /d A:
  rmdir C:\_A
  endlocal & goto :EOF

  hh ntcmds.chm::/ntcmds.htm