Question
Thread display: Collapse - |
All Answers
Start or search
Create a new discussion
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Writing a windows script for the net use command
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