05-09-2007, 14:49 | #1 |
Absinthe
Join Date: Jan 2007
Location: Chester
Posts: 2,345
|
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: |
05-09-2007, 14:51 | #2 |
The Stig
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
|
If you just want to open an explorer window say, then:
Code:
start \\10.10.10.10\c$ Code:
net use \\10.10.10.10\c$ z:
__________________
apt-get moo |
05-09-2007, 15:26 | #3 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
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. |
05-09-2007, 15:29 | #4 |
The Stig
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
|
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
__________________
apt-get moo |
05-09-2007, 15:30 | #5 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
Actually, they do in XP. It was Win98/Me that went the other way.
|
05-09-2007, 15:34 | #6 |
The Stig
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
|
Oh aye? Glad to see they sorted it. Last time I tried it was some revision of 2000.
__________________
apt-get moo |
05-09-2007, 15:46 | #7 | |
Magners
Join Date: Jul 2006
Posts: 2,865
|
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.
__________________
Quote:
|
|
05-09-2007, 15:48 | #8 |
The Stig
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
|
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.
__________________
apt-get moo |
05-09-2007, 15:49 | #9 |
Absinthe
Join Date: Jan 2007
Location: Chester
Posts: 2,345
|
finally sorted it....think i needed adding to local admin or something...well whatever it was its working after makin myself admin.
|
05-09-2007, 15:50 | #10 |
The Stig
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
|
The x$ shares are the 'administrative' shares, and thus only people with admin privileges can access them
__________________
apt-get moo |