Page 1 of 1 1
Topic Options
#189431 - 2008-09-04 11:03 AM Change drive letter
asco Offline
Fresh Scripter

Registered: 2007-10-25
Posts: 25
hi all. Im haveing some problems with drive letter. i have som machines there have card reader, and the card reader takes the drive letter H. But all my users home folder is also H, so the home folder does not get maped. Is there any why kixtart can change the drive letter on the card reader at login? Hope you can hel me here! thx
Top
#189432 - 2008-09-04 11:46 AM Re: Change drive letter [Re: asco]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
There are some scripts around that are able to do this but they do not work for me. Don't know why but all I get are errors and nothing gets changed. There is also some talk about XP not supporting this kind of actions.

But .......... don’t throw the towel and start crying because there is an other option.

Microsoft has a small application that you can use to change drive letters.

A Description of the Diskpart Command-Line Utility
Download DiskPart.exe from MS website (requires genuine Windows check)

A small overview of the steps to take.
I followed the exact same steps and it works great. This can easily be done from a script.
1. parse the output of DISKPART's "LIST VOLUME" command
2. locate the drive you want to change from the list and determine its Volume ID
3. SELECT that volume ID
4. REMOVE its existing drive letter
5. ASSIGN MOUNT=<new drive letter>: to give it the new drive letter


Edited by Mart (2008-09-04 11:54 AM)
Edit Reason: Changed step 2 a little.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#189434 - 2008-09-04 01:20 PM Re: Change drive letter [Re: Mart]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
I use this technique to move the CDROM drive on my automated Citrix server builds.

It works very well.

Top
#189645 - 2008-09-12 11:22 PM Re: Change drive letter [Re: asco]
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
We have just do the same thing when we found a encrypted usb key conflicted with the cdrom drive letter.

 Code:
;Main Part Of Script
Shell 'C:\WINDOWS\System32\Diskpart.EXE /s "'+$ScriptPath+'\Data\Reassign CD Drive Letter\'+$Version+'\CDROM.s"'


CDROM.S File
 Code:
SELECT Volume 0
Assign Letter=Z
Exit


Hope this helps.

Top
#189650 - 2008-09-13 07:07 AM Re: Change drive letter [Re: Richie19Rich77]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
You would think that MS would allow some interaction from scripting to manage this correctly. This is another task I've recently wanted to do. I'll use it if I have to, but will also look for a proper method that works with scripting.
Top
#189668 - 2008-09-15 12:47 PM Re: Change drive letter [Re: NTDOC]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
Well there are good and bad card readers, the bad ones take up drive letters from the get go. The good ones only take a drive letter when a card is inserted. I don't know if this can be set manually....
Top
#189750 - 2008-09-19 10:49 AM Re: Change drive letter [Re: Arend_]
dynadrate Offline
Fresh Scripter

Registered: 2007-06-25
Posts: 15
You might take a look at USBDLM
This programm solves other issues with USB drive letters, too.
No start script required.
Costs money if you are a company.

Top
#189765 - 2008-09-19 06:14 PM Re: Change drive letter [Re: dynadrate]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Thanks dynadrate but for:

Site Licence 2400.00 USD
World-Wide Licence 9600.00 USD


I think that is part of the reason most of us do scripting as it is FREE

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 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.139 seconds in which 0.108 seconds were spent on a total of 14 queries. Zlib compression enabled.

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