Shortcut

  • Thread starter Thread starter Gil
  • Start date Start date
G

Gil

hi,
I am moving the home directories of all my users to another server. All the
users had drive x: as their home folder. No it will stay drive X: but it
will locate on another server.
Therefore I need a command line to delete the old x: drive and a command
line that will add a new shortcut to the desktop of the users. Those 2
commands will be added to the sctipt of the users.
(I am NOT using GPO for this purpse becuse I out DC are win2000 and NOT
win2003 )
 
I'm no batch programmer, but I think it goes something like this:

if exists x: net use x: /delete /y
net use x: \\newServerName\newShare


--

Paul Williams

http://www.msresource.net
http://forums.msresource.net
______________________________________
hi,
I am moving the home directories of all my users to another server. All the
users had drive x: as their home folder. No it will stay drive X: but it
will locate on another server.
Therefore I need a command line to delete the old x: drive and a command
line that will add a new shortcut to the desktop of the users. Those 2
commands will be added to the sctipt of the users.
(I am NOT using GPO for this purpse becuse I out DC are win2000 and NOT
win2003 )
 
Even easier... you don't have to do ifs and arguments... just
net use x: /delete
and
net use x: \\server\share
will do it... if it doesn't find the drive to delete, it'll say so, and skip
past it.

Cheers

Ken
 
Back
Top