problem running exe from CD under Vista

Convert your BATch files into EXEcutable format in one click.
Post Reply
vince
Posts: 3
Joined: Tue Jun 12, 2007 1:04 am

problem running exe from CD under Vista

Post by vince »

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?
support
Site Admin
Posts: 476
Joined: Fri Feb 13, 2004 1:05 pm

Post by support »

What compiler version you have?
vince
Posts: 3
Joined: Tue Jun 12, 2007 1:04 am

Post by vince »

2.1.5.0
Post Reply