| View previous topic :: View next topic |
| Author |
Message |
relsch
Joined: 01 Nov 2006 Posts: 1
|
Posted: Wed Nov 01, 2006 7:08 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|
|
Oleg Tsheglov Site Admin
Joined: 13 Feb 2004 Posts: 309
|
Posted: Fri Nov 03, 2006 1:36 am Post subject: |
|
|
Please try file name with extension %MYFILES%\choice.com
or use SET command to get use input. |
|
| Back to top |
|
 |
xird
Joined: 22 Nov 2006 Posts: 1
|
Posted: Wed Nov 22, 2006 10:33 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Oleg Tsheglov Site Admin
Joined: 13 Feb 2004 Posts: 309
|
Posted: Wed Nov 22, 2006 11:24 pm Post subject: |
|
|
| You can use system variables, for example %TEMP% |
|
| Back to top |
|
 |
|