Included files in v2.1.5.0 - %MYFILES% env. variable not working

Convert your BATch files into EXEcutable format in one click.
Post Reply
relsch
Posts: 1
Joined: Wed Nov 01, 2006 4:18 pm

Post by relsch » Wed Nov 01, 2006 7:08 pm

I am apparenlty unable to get the %MYFILES% environment variable to work correctly.

---------------------------
For Example:

- I have attached "choice.com" for use in a simple batch script
- In my script I am doing this:
%myfiles%\choice Is this information correct, and are you ready to continue
if errorlevel=2 goto BadInfo

This results in inability of the script to find choice.com. The same thing happens with deltree and zip utility executables.
---------------------------

Any ideas?

Thanks
-Relsch

Oleg Tsheglov
Site Admin
Posts: 309
Joined: Fri Feb 13, 2004 5:55 pm
Contact:

Post by Oleg Tsheglov » Fri Nov 03, 2006 1:36 am

Please try file name with extension %MYFILES%\choice.com
or use SET command to get use input.

xird
Posts: 1
Joined: Wed Nov 22, 2006 10:28 am

Post by xird » Wed Nov 22, 2006 10:33 am

Hello,
Am trying this out and works great, but i want to create a folder in a temp directory and copy some files into it. So far any folder i create appears on the desktop, is it possible for the folder to be created elsewhere , ie so user does not see. in the application that runs the temp folder will be deleted. The folder does not have to be the actual temp folder, just a folder in a location, other than the desktop.


any advice ??

thank you

Oleg Tsheglov
Site Admin
Posts: 309
Joined: Fri Feb 13, 2004 5:55 pm
Contact:

Post by Oleg Tsheglov » Wed Nov 22, 2006 11:24 pm

You can use system variables, for example %TEMP%

Post Reply