Discussion Locked

Batch file?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

5 replies

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

This is what I tried first thing. It works on WinME, 98, and 95 but not on 2000 thanks for the reply.

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.