/WAIT parameter not working?
Posted: 16 Jun 2010 19:56
Here is the batch file...
----------------
@ECHO OFF
START "Launch TrueCrypt" /Dc:.\ /WAIT .\TrueCrypt.exe /Volume ComputerTechEZ /letter s /quit
START "Launch OC" /Ds:\OpenContactsPortable /WAIT s:\OpenContactsPortable\OpenContacts.exe
START "Dismount All TrueCrypt" /WAIT /B /Dc:.\ /WAIT TrueCrypt.exe /dismount s
ECHO Dismount completed successfully.
----------------
What I am trying to get it to do...
1. Launch TrueCrypt and mount the file ComputerTechEZ to drive S:
2. Then launches OpenContacts.exe which is within the drive
3. When OpenContacts.exe closes(which is done manually by the user at will) truecrypt then dismounts drive S:.
The problem is that TrueCrypt attempts to dismount right after OpenContacts.exe launches and does not wait. What am I doing wrong with the wait command?
----------------
@ECHO OFF
START "Launch TrueCrypt" /Dc:.\ /WAIT .\TrueCrypt.exe /Volume ComputerTechEZ /letter s /quit
START "Launch OC" /Ds:\OpenContactsPortable /WAIT s:\OpenContactsPortable\OpenContacts.exe
START "Dismount All TrueCrypt" /WAIT /B /Dc:.\ /WAIT TrueCrypt.exe /dismount s
ECHO Dismount completed successfully.
----------------
What I am trying to get it to do...
1. Launch TrueCrypt and mount the file ComputerTechEZ to drive S:
2. Then launches OpenContacts.exe which is within the drive
3. When OpenContacts.exe closes(which is done manually by the user at will) truecrypt then dismounts drive S:.
The problem is that TrueCrypt attempts to dismount right after OpenContacts.exe launches and does not wait. What am I doing wrong with the wait command?