|Posted on Monday, September 15, 2003 - 3:18 pm: |
Batch file problem 8-31-03
I have Windows XP Pro, 512 RAM, 2.3 GHz motherboard and two each 40 GB hard drives.
Occasionally I go to C:\ command prompt
Purpose is to see a list of all the files, Dir etc in my C: directory.
I much prefer to see the list in alpha order and the file names on the left.
I recently made a batch file called “dirbob” which consists of the following.
To pause for each screen, list file names to the left and in alphabetical order.
The batch file works fine in my “C:” directory. However it refuses to work in any other directories, D or E which I have on the same drive as the C directory.
Likewise if I type dirbob D: it will not perform the dir search.
The message I get is “dirbob is not recognized as an internal or external command, operable program or batch file”
The same happens if I go to D:\ and type dirbob
Having never ran across this problem I’m stumped. Any suggestions?
TKS Bob A
|Posted on Monday, September 15, 2003 - 7:49 pm: |
Try setting up different variables in Environment Variables: Control Panel>System>Advanced>Environment Variables; You can specify a different variable for each drive and call them up from there. Just make sure you copy the original variables so you can recover from any errors during the Process. I always had good luck with Win2K Pro and variable environments so XP Pro shouldn't be much different.