Hey group. I'm having a problem with a script I'm
writing. I'm writing a script to use a net use command,
map a drive, connect to this mapped drive, and do a couple
things. The script runs fine up to and including the net
use command. After that though, it doesnt work; bascally
I don't have permissions (with the script) to go to the
newly mapped drive (the account I am using to run it is a
domain admin). For testing purposes, I'm only trying to
connect to one box. Here's a code snipit:
strComputer="est213-01"
strdirlist = "net use k: \\" & strComputer & "\c$"
Wscript.Echo strdirlist
Set doit = WshShell.Exec(strdirlist)
strdirlist = "k:"
Wscript.Echo strdirlist
Set doit = WshShell.Exec(strdirlist)
As soon as I try to connect to k:, I get errors. However,
it does create k: in the first net use command (I can
manually get to it).
Any suggestions?
Thanks.
Anthony