Computing.Net > Forums > Windows XP > Batch File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Batch File

Reply to Message Icon

Name: SimonH
Date: July 4, 2003 at 07:40:02 Pacific
OS: Win XP Pro
CPU/Ram: P4 2.4Ghz 512DDR
Comment:

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




Sponsored Link
Ads by Google

Response Number 1
Name: Toad
Date: July 4, 2003 at 12:17:52 Pacific
Reply:

net use /persistent:yes

To restore the CURRENT connections at each logon, regardless of future changes.


0

Response Number 2
Name: Dr. Nick
Date: July 4, 2003 at 17:19:19 Pacific
Reply:

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.


0

Response Number 3
Name: SimonH
Date: July 9, 2003 at 04:17:31 Pacific
Reply:

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 EG

net use f: \\cmputername\share password


0
Reply to Message Icon

Related Posts

See More


send to finding volume label for ...



Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Batch File

Batch file www.computing.net/answers/windows-xp/batch-file/180885.html

Auto folder Batch file www.computing.net/answers/windows-xp/auto-folder-batch-file/145055.html

simple batch file www.computing.net/answers/windows-xp/simple-batch-file/149160.html