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 » Tue Jul 17, 2007 10:02 pm

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: 404
Joined: Fri Feb 13, 2004 1:05 pm

Post by support » Wed Jul 18, 2007 3:36 pm

What compiler version you have?

vince
Posts: 3
Joined: Tue Jun 12, 2007 1:04 am

Post by vince » Wed Jul 18, 2007 3:43 pm

2.1.5.0

Post Reply