| View previous topic :: View next topic |
| Author |
Message |
vince
Joined: 12 Jun 2007 Posts: 3
|
Posted: Tue Jul 17, 2007 10:02 pm Post subject: problem running exe from CD under Vista |
|
|
I am trying to run a command like this from a CD under Vista. It works fine as a batch file under Vista and outputs the CD-ROM drive letter to a text file, as intended. It works fine as an exe and batch under 2000/XP.
ECHO %~dp0 > C:\file.txt
where file.txt will display D:\
However, after I convert it to an executable Vista will run the exe from a temp folder which gives the wrong path in file.txt. Is there a way to prevent this from happening? |
|
| Back to top |
|
 |
|
|
support Site Admin
Joined: 13 Feb 2004 Posts: 302
|
Posted: Wed Jul 18, 2007 3:36 pm Post subject: |
|
|
| What compiler version you have? |
|
| Back to top |
|
 |
vince
Joined: 12 Jun 2007 Posts: 3
|
Posted: Wed Jul 18, 2007 3:43 pm Post subject: |
|
|
| 2.1.5.0 |
|
| Back to top |
|
 |
|