Help with Command Prompt on XP?

A

Alain Dekker

Hi,

Where can I go for help with the command prompt (DOS programming) on XP.
There don't seem to be any dedicated groups for this.

The question I'd like answered is:

"Is there any way to write a batch file that will "remember" what directory
it was in so that program execution can return to that folder.

For example, if I am in the directory C:\Test (or somewhere else) and I want
to run a batch file
in C:\MyBatchFiles, I could use:

cd\MyBatchFiles
MyBatchProg
REM I want to return to C:\Test or wherever I ran the batch file from...

Now, I don't want to have to edit the batch file every time I copy it to a
new directory. Any ideas?"

Thanks,
Alain
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top