Writing a windows script for the net use command - TechRepublic
Question
August 13, 2008 at 09:54 AM
angeln186

Writing a windows script for the net use command

by angeln186 . Updated 17 years, 11 months ago

Hi guys,

I am a total newbie when it comes to windows scripts. I really need a script to just mount a shared folder.

So if you guys could help me out with the basics of scripting, that would be awesome. For instance i can type “net use” in the command prompt and get a list of shares im connected to. How do i put that command in a script file? I have tried just writing net use in a text file (which i renamed to a vbs extension) but no luck.
I have tried the full pathname (C:\windows\system32\net.exe use) but still did not work.
What am I doing wrong?

Thanks

Nitin

This discussion is locked

All Comments