Batch file?
I am trying to open a command prompt that runs a batch file. I want it to direct what directory I go to... ie when I type T: it takes me to t:\xxx\xxx or when I type f: I goto f:\xxx\xxx\xxx
TIA
John Bennie
Windows Forum
I am trying to open a command prompt that runs a batch file. I want it to direct what directory I go to... ie when I type T: it takes me to t:\xxx\xxx or when I type f: I goto f:\xxx\xxx\xxx
TIA
John Bennie
by nigel_ga
by johnbennie
by firenglory
The simplest way to do this would be to make a few batch files and but them in a 'path' directory... I'd suggest c:\windows\command.
Make these batch files f.bat and t.bat. f.bat would contain:
@echo off
f:
cd \xxx\xxx\xxx
t.bat would read:
@echo off
t:
cd \xxx\xxx
Then, when you want to go there, just type 'f' or 't'. This will work best.
by johnbennie
by firenglory
Oh, I forgot that it was Win2000. It doesn't work there because that folder is not in the path. Make the same batch files and put them in the c:\WINNT folder. You can also type 'PATH' from the command prompt and that will list all the directories that are in the path. You can put the batch files in any directory you see listed there.
FnG
This discussion is closed to new replies.
Sort by Trending