Page 1 of 1 1
Topic Options
#145374 - 2005-08-11 03:48 PM USE F: /DEL
moersted Offline
Lurker

Registered: 2005-08-11
Posts: 4
I'am writing a logon script, going well so far, including some robocopy, to keep the users uptodate !
But now i'am stucked with deleting, og setting a network connection.
In my script, if the user is on a laptop, i want to connect som drives locally
eg. f: \\Server-Bla\Something with \\PC-no\C-drive\anything

how do i accomplish that ???

IF EXIST ("C:\Local_Site\*.*")
USE F: /DEL
USE F: "\\" + @WKSTA + "\C-Drive\Local_Site"
ENDIF
_________________________
Regards Michael Nothing Fancy just plain me !

Top
#145375 - 2005-08-11 04:03 PM Re: USE F: /DEL
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Your script will map a drive to a drive that is local on the machine it is mapped from which is of no use imho.

Quote:


....
In my script, if the user is on a laptop, i want to connect some drives locally
eg. f: \\Server-Bla\Something with \\PC-no\C-drive\anything





Here you say you want to map to a drive on a server. This makes more sense to me.

Code:

If Exist ("C:\Local_Site\*.*")
Use F: /Del /PERSISTENT
Use F: "\\servername\share"
EndIf



So this will do that.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#145376 - 2005-08-12 09:01 AM Re: USE F: /DEL
moersted Offline
Lurker

Registered: 2005-08-11
Posts: 4
Thanks !
Maybe i didn't explain good enhough.
The problem is, when a disconnected Laptop logs on, i want to exchange a share to a server, with a share to a local folder.

I can get it to work with dos, så maybe i should just call a bat rutine !

Thanks again
Michael
Nothing fancy just plain me !
_________________________
Regards Michael Nothing Fancy just plain me !

Top
#145377 - 2005-08-12 12:24 PM Re: USE F: /DEL
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Why don't you use "offline folder"
Right-click with your mouse on the mapped network drive and "make available offline"

Top
#145378 - 2005-08-12 01:01 PM Re: USE F: /DEL
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
moersted, logs in is totally different than reconnecting.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2375 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.104 seconds in which 0.081 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org