Main Site Nav
Topics Topics Edit Profile Profile Help/Instructions Help    
Search Last 1|3|7 Days Search Search Tree View Tree View  

Batch file

Trish's Escape from Hardware Hell Help Board » Software » Windows NT, 2000 and XP » Batch file « Previous Next »

Author Message
bob alderman
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.
“dir/p/-n/o:n”
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
E.S.
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.

Add Your Message Here
Post:
Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Administration Administration Log Out Log Out   Previous Page Previous Page Next Page Next Page