Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 05-09-2007, 14:49   #1
Joe 90
Absinthe
 
Joe 90's Avatar
 
Join Date: Jan 2007
Location: Chester
Posts: 2,345
Default 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:
__________________
360 Blog | Join GiffGaff | Twitter
Joe 90 is offline   Reply With Quote
Old 05-09-2007, 14:51   #2
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

If you just want to open an explorer window say, then:

Code:
start \\10.10.10.10\c$
To map a drive:
Code:
net use \\10.10.10.10\c$ z:
That last one might be wrong, not done that outside of vbscript for a while
__________________
apt-get moo
Daz is offline   Reply With Quote
Old 05-09-2007, 15:26   #3
Mark
Screaming Orgasm
 
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
Default



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.
Mark is offline   Reply With Quote
Old 05-09-2007, 15:29   #4
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

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
Daz is offline   Reply With Quote
Old 05-09-2007, 15:30   #5
Mark
Screaming Orgasm
 
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
Default

Actually, they do in XP. It was Win98/Me that went the other way.
Mark is offline   Reply With Quote
Old 05-09-2007, 15:34   #6
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

Oh aye? Glad to see they sorted it. Last time I tried it was some revision of 2000.
__________________
apt-get moo
Daz is offline   Reply With Quote
Old 05-09-2007, 15:46   #7
mejinks
Magners
 
mejinks's Avatar
 
Join Date: Jul 2006
Posts: 2,865
Default

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:
Originally Posted by Piggy
HAHAHAHA !!!! .. perhaps I should try my bum instead *ponders*
mejinks is offline   Reply With Quote
Old 05-09-2007, 15:48   #8
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

Quote:
Originally Posted by mejinks View Post
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.
__________________
apt-get moo
Daz is offline   Reply With Quote
Old 05-09-2007, 15:49   #9
Joe 90
Absinthe
 
Joe 90's Avatar
 
Join Date: Jan 2007
Location: Chester
Posts: 2,345
Default

finally sorted it....think i needed adding to local admin or something...well whatever it was its working after makin myself admin.
__________________
360 Blog | Join GiffGaff | Twitter
Joe 90 is offline   Reply With Quote
Old 05-09-2007, 15:50   #10
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

Quote:
Originally Posted by |Show| View Post
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
__________________
apt-get moo
Daz is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 15:30.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.