|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Drive letter reference
I am trying to reference a cd drive without using the drive letter. In example, I want to be able to insert my customized WinXP cd into any cd drive available and have it reference the winnt.sif, without have to use a drive letter. Right now, the cd has to be placed in drive E, cause thats what the winnt.bat file says.
How can I make it read the winnt.sif file from a subdirectory on the cd without reference the drive letter. Her is the current script: Code:
@rem SetupMgrTag @echo off rem rem This is a SAMPLE batch script generated by Setup Manager. rem If this script is moved from the location where it was generated, it may have to be modified. rem set AnswerFile=.\winnt.sif set SetupFiles=E:\i386 E:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% |
|
#2
|
||||
|
||||
|
Code:
for /f "tokens=3 delims=\:" %%k in ('reg query hklm\system\mounteddevices^|findstr /C:"5C003F00"') do set CDROM=%%k:
echo %CDROM%
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > Drive letter reference |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|