Net Use in Login Script

  • Thread starter Thread starter Anthony
  • Start date Start date
A

Anthony

How do I create a small .vbs file that includes the
correct syntax of the net use command to map several
shares to drive letters (Win2K Pro)?

For example, Ive tried [net use f: \\win2kSrv\downloads]
AND [net use f: \\192.96.48.1\downloads] in a .vbs file
without success. I keep getting an error: end of
statement expected at character 9. When I type it at the
command prompt it works fine. Drive letter f: is not
currently mapped.

Any suggestions?
 
Reply to this post and copy the text of your vbs file to the post.

--Shawn
This posting is provided "AS IS" with no warranties and confers no rights.
 
The text in my .vbs file is as follows:

net use f: /d
net use f: \\win2ksrv\downloads
net use g: /d
net use g: \\win2ksrv\utilities
net use h: /d
net use h: \\win2ksrv\AAHomeDir

-Anthony
-----Original Message-----
Reply to this post and copy the text of your vbs file to the post.

--Shawn
This posting is provided "AS IS" with no warranties and confers no rights.



How do I create a small .vbs file that includes the
correct syntax of the net use command to map several
shares to drive letters (Win2K Pro)?

For example, Ive tried [net use f: \\win2kSrv\downloads]
AND [net use f: \\192.96.48.1\downloads] in a .vbs file
without success. I keep getting an error: end of
statement expected at character 9. When I type it at the
command prompt it works fine. Drive letter f: is not
currently mapped.

Any suggestions?


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top