|
Answer» Good afternoon all, tried a search but was unsuccessful... I have been working on a batch file to automate the install of CiscoVPN and setup DESKTOP Icons from an install disk... Basically I want to be prompted only once for the install of all three programs. I tried to manipulate the autorun.inf but it will not work with multipul files the way i want it to.
Here is the batch file...
title Cisco VPN and MS RDP installer... @echo off cls :start ECHO. set choice= set /p choice=... Install My Secure Connection and Icons (Y/N)? if not '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='y' GOTO INSTALL if '%choice%'=='Y' goto INSTALL if '%choice%'=='N' goto end if '%choice%'=='n' goto end ECHO "%choice%" is not a valid selection, please try again ECHO. goto start :INSTALL ECHO INSTALLING... Start d:\setup2.exe Start d:\serverEntryToHostsFile.bat Start d:\setup.exe goto end :end
My question is... how do i make it so that the CD install drive is chosen automatically? Not all CD DRIVES are going to be 'd' drives. So if I insert my disk and and the disk drive is 'n' instead of 'd', is there a subroutine or someting that will RECOGNIZE which drive the cd is in and install from?The batch file is on the CD and you want it to "know" what drive letter it is being run from?
In 2000 & XP it is %~d0 Exactly what I was looking for!!
Thank you!!!
|