View Full Version : run command to connect to another machine...
Hi,
google and ppl here haven't responded possitively so - can someone remind me the run command to connect to another machine in that 'temp drive mapping' kinda way...
i though it was, for example,
\\10.12.13.14\d$
but i can't get any combination of that working. :undecided:
If you just want to open an explorer window say, then:
start \\10.10.10.10\c$
To map a drive:
net use \\10.10.10.10\c$ z:
That last one might be wrong, not done that outside of vbscript for a while :p
:p
Drive letter before the network share name on the last one - or just use * instead of the drive letter to map the next available drive. :)
I'd use that all the time if you could invert it. Network drive connections should come down from Z, not up from whatever's available. Which is one of a few reasons why it's done in vB on my networks :p
Actually, they do in XP. It was Win98/Me that went the other way.
Oh aye? Glad to see they sorted it. Last time I tried it was some revision of 2000.
Funnily enough, I was writing these this morning. Do you also need to inject a user name and password into the script? Also, dont forget to do:
Net Use Z: /d otherwise it will remain as a perm mapping.
Also, dont forget to do:
Depends how the authentication is handled, or if it's even required. In a domain so long as the user has permission to the share then authentication is handled transparently by the shell. Between a couple of PC's, if the user name and password on the host machine matches a username and password on the target, and that account has permission to access the share, then it's let in. If authentication isn't required then it just gets let in.
finally sorted it....think i needed adding to local admin or something...well whatever it was its working after makin myself admin.
finally sorted it....think i needed adding to local admin or something...well whatever it was its working after makin myself admin.
The x$ shares are the 'administrative' shares, and thus only people with admin privileges can access them :)
Net Use Z: /d otherwise it will remain as a perm mapping.
net use /persistent:no will fix that. I hate persistent mappings.
I quite like them for my network drives - makes life a lot easier to just have them there...
I haven't used them in years. Clunky and antiquated imo, folder redirection is more flexible and should cover almost everyone's needs.
Folder redirection in Windows?
Yep.
http://www.microsoft.com/technet/community/en-us/management/manage_faq.mspx
Oooh interesting. I don't think it's something I'd ever need to setup in a home situation, but interesting to read. I'm quite happy with Samba at the moment, it's basic and that's all I need. Gone are my days of geekiness! :p
vBulletin® v3.7.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.