Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hey, I'm new to batch programming for NT.
I don't have an NT box to test on, and I have to get this file done today. Please find my 'stupid questions of the day' below ;)Can someone tell me if I'm correct in assuming:
1) NT filenames are case sensitive
(ie - IF EXIST "C:\PROGRAM FILES\QUICKTIME\QUICKTIMEPLAYER.exe ...
won't work when the path is really:
"C:\Program Files\QuickTime\QuickTimePlayer.exe)2)dos batch commands are case INsenstive in NT as they are in win 9x
ie - "IF EXIST" is the same as "if exist"Thanks very much for any assistance provided.

all dos commands except for some switches are case insensative, so your IF EXIST "C:\PROGRAM FILES\QUICKTIME\QUICKTIMEPLAYER.exe statement should work just fine.

Thanks to all who replied... unfortunately, I'm no closer. Perhaps some endeavoring soul can tell me why the following batch file isn't working on an NT system-
excerpts follow:
@ECHO OFF
IF Windows_NT == %OS% GOTO WIN_NT
...
:WIN_NT
:test for presence of standard quicktime installation.
IF EXIST "C:\PROGRAM FILES\QUICKTIME\QUICKTIMEPLAYER.exe" GOTO RUN_QT_NT
ECHO Could Not Locate QuickTimePlayer. Initializing the Installer.
GOTO INSTALL_QT:RUN_QT_NT
IF EXIST D:\CLICKME.MOV GOTO PLAY_QT_NT
ECHO Windows NT users note that in order for autoplay to function, your
ECHO CD drive must be designated "D".
ECHO If you want to enable the autoplay feature, please map your CD drive
ECHO to "D" and reinsert the SHAW_ALMEX CD.
ECHO For manual start, simply double-click on the file "CLICKME.MOV"
ECHO in the root directory of the CD.
PAUSE
GOTO END:PLAY_QT_NT
"C:\PROGRAM FILES\QUICKTIME\QUICKTIMEPLAYER.exe" D:\CLICKME.MOV
IF ERRORLEVEL 1 GOTO FAILURE
GOTO END:INSTALL_QT
"\QUICKTIME\QUICKTIMEINSTALLER.exe"
IF ERRORLEVEL 1 GOTO FAILURE
ECHO After Quicktime has completed the installation process, eject the
ECHO SHAW_ALMEX CD and then re-insert it for autostart.
PAUSE:END
EXIT====end excerpt====
This code is being run from a batch file on a CD which is called in an autorun.inf file.
The CD contains:
a file called CLICKME.MOV
a dir called QuickTime which contains a file
called QuickTimeInstaller.exeAgain, any help is most appreciated.
reaching desparation ;)

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |