#154278 - 2005-12-30 04:57 PM
USE Command Questions.
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
I have just few questions on the use command. When I map a drive with the logon script all of my drives show up in My Computer in the following format: sharename on 'servername' (drive letter). Example var_rpt on 'Paragonrpt' (R:). However, one of our drives consistently maps correctly, BUT shows up as 'Network Drive (T:)' in My Computer. Sometimes it will show up correctly in My Computer. Could this be caused by the way I map the drive?
Here's how I map: Code:
;Drive Mappings For Paragon IF InGroup("WinTermParagon", "ParagonUsers") USE R: "\\Paragonrpt\var_rpt" USE T: "\\Paragonrpt\var_test" USE V: "\\Paragondb\vardata" IF InGroup("ParagonForms") SHELL '%comspec% /c "net use z: /delete" 1>nul 2>nul' USE Z: /delete USE Y: "\\parntier\PrintForms" ENDIF ENDIF
Is that a good way, or should I be mapping persistent? Also, I have noticed that in some examples people delete the drive first, then re-map it. Does it make a difference in the way you map?
|
Top
|
|
|
|
#154281 - 2005-12-30 06:56 PM
Re: USE Command Questions.
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
No to symantec. We're running Panda.
T seems to be the only drive with this effect.
|
Top
|
|
|
|
#154284 - 2005-12-31 02:39 AM
Re: USE Command Questions.
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
This issue occurs on multiple workstations. It doesn't really effect anything, I was just wondering why. So, does it have anything to do with my original question? Does it matter how you map a drive? Is one way better than the other? Persistent or Not Persistent? Delete or No delete before the mapping?
|
Top
|
|
|
|
#154288 - 2005-12-31 03:45 AM
Re: USE Command Questions.
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
I set up the kix delete command, and it didn't seem to delete the Z drive. That's what I shelled to the net use. I thought that I read that kix use can only delete drives it makes. Does 'use z: /delete /persistent' do something special?
If the mapping does fail, what can you do about it during the logon? I can understand un-mapping before you attempt the map. That protects you from the dumb users, but how does catching an @error help? Go check through logs? I think I'm missing something.
|
Top
|
|
|
|
#154290 - 2005-12-31 04:30 AM
Re: USE Command Questions.
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
Does 'use z: /delete /persistent' do something special?
|
Top
|
|
|
|
#154293 - 2005-12-31 06:41 AM
Re: USE Command Questions.
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
Basically Z got moved to Y. They had mapped Z on the PCs from within windows. I did the 'use z: /delete' but it had no effect - the drive wouldn't disconnect. That's why I added in the shell to the dos net use. It's only temporary.
However, I guess a 'use /delete /persistent' is different than just a 'use /delete'.
|
Top
|
|
|
|
#154295 - 2005-12-31 06:59 AM
Re: USE Command Questions.
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
That seemed like a long way to go to get that answer! Thanks!
I'll try this, and see if the original problem goes away. (My Computer odd name)
Code:
;Drive Mappings For Paragon IF InGroup("WinTermParagon", "ParagonUsers") USE R: /delete /persistent USE T: /delete /persistent USE V: /delete /persistent USE R: "\\Paragonrpt\var_rpt" USE T: "\\Paragonrpt\var_test" USE V: "\\Paragondb\vardata" IF InGroup("ParagonForms") USE Z: /delete /persistent USE Y: /delete /persistent USE Y: "\\parntier\PrintForms" ENDIF ENDIF
Maybe that'll help out.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|