Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows 2000 Question to Experts
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00398451
Message ID:
00398621
Vues:
21
>G'day Peter,
>
>The way I approach this is to consider one domain my "home" domain (in this case, probably OTTNT1). When you're plugged in there, there's nothing else to do.
>
>When you plug in to another domain (say OTT2), and you need to access resources on a member of that domain (let's say the computer's called OTT2PDC), connect to the IPC share of that member using the following command line:
>
NET USE \\OTT2PDC\IPC$ /u:OTT2\< username >
>Now, you will have access to all the resources on OTT2PDC as if you were logged in as < username > on the OTT2 domain.
>

You can do the same thing using WNetAddConnetion3(), there's a sample implementation in my NETRESOURCE class in the Files section.

>Check out the docs for other neat NET commands.
>
>Cheers,
>
>Andrew
>

>>I have the following scenario:
>>A domain in one office called OTTNT1
>>
>>A domain in the homeoffice called OTT2
>>
>>A peer networked office elsewere
>>
>>A laptop carried between the 3
>>
>>When I physically plug in my network cable and boot up I want to be able to select the domain I want to connect to depending on the location and have the laptop be authenticated and I need access to all resourses on the network I am connected to.
>>As I am set up I see verything on OTTNT1 and only the laptop elsewhere.
>>
>>There must be a way to accommodate the raoming worrier.
>>
>>Peter
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform