Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
and i am running batch files from the startup folder using the net use command to map drives to a unix server in Win xp Pro.
When the pc boots it runs this batch and asks you for a username and password. my problem is that sometimes when it runs this batch file it doesnt ask me for the username and password it just runs and closes. Without these mappings the main program that they use will obviously not work then they are calling me. Is there another way to run a batch file as in can you set it as a service instead of running from the startup folder.thanks
Simon

net use /persistent:yes
To restore the CURRENT connections at each logon, regardless of future changes.

Or you can just use the built in support for mapping drives. Just open Windows Explorer and go to Tools > Map Network Drive. Put in your info, and check the box that says you want to Reconnect at Logon.
No batches or startup commands needed.

Thanks for trying to help lads but my problem was that i needed to type in a password when this batch file had run. if i went into my computer the mappings where there just with red X's on them. if i clicked on one of them it would ask me for a password. once i put it in i could get in but you know yourself i couldnt leave it up to a user to remember to do this every time they booted there pc, it had to be in there face. this is the reason for the batch file so it would ask for a password on boot. manually mapping them would give me the red X's so would Persistent.
Well just in case you are wondering i found an answer. i can actually specify a password in the batch which i didnt know you could do EGnet use f: \\cmputername\share password

![]() |
send to
|
finding volume label for ...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |