|
Answer» I have created a batch file that moves a file to another folder. The problem is that this batch file is downloaded from My server over the internet. I do not KNOW where the USER would download the file to. So my problem lies within moving the file whose location is unknown.
E.g. The download is a .zip containing three Files. run.bat program.bat readme.txt
Once you download the zip, you must run "run.bat" and on running that file, a command says to move program.bat to the startup folder.
copy LOCATION\program.bat "C:\docume~1\all users\start up\menu\progra~1\start up"
Can anyone answer how I am to go about moving the file if it is not downloaded into the correct directory?If I understand your question correctly, run.bat and program.bat are downloaded to same directory, you just don't know it's location.
copy .\program.bat "C:\docume~1\all users\start up\menu\progra~1\start up"
The dot will resolve to the current directory.
Hope this helps. Wow Side, I am Gabby Ab, I must SAY, your wisdom on Dos and VB is outstanding. Your advice is appreciated man. Thank You.
p.s. Do you WORK for pay? can I pay you for work.or you could just LEARN to do it yourselfSidewinder... Man... You just got a "friend". Now behave nicely, no fights ....... ....... That's my boy (after Spike, see "Tom and Jerry")
|