Jump to content

mdes

Member
  • Posts

    342
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    France

Posts posted by mdes

  1. Now I'm trying to run it from a batch. And I'm not getting it to work.

    I used

    start /wait "C:\Install\MapDrive.cmd DEU %SystemDrive%\Temp >%SystemDrive%\Temp"

    but it doesn't even start.

    Hi Kamizoli,

    I would try

    start /wait "MapDrive or wathever" "C:\Install\MapDrive.cmd DEU %SystemDrive%\Temp >%SystemDrive%\Temp"

    because, in some case, a DOS box title is required with START.

    I hope this will solve your problem :)

    Michel.

  2. Hi Aemetz,

    Sorry for the long delay to answer you, but the forum subscription does not seem to work :(

    I have no experience with this kind of installation (Win2K + WinXP) :blushing:

    If at installation time, C: is the system partition, I think that creating a empty file DRIVE.F on the partition where WinXP has to be installed will solve the issue, but I am not sure this will solve the problem. Perhaps creating DRIVE-.F on the system partition, so MapDrive will not assign the lettre F:, then during the boot, Windows will perhaps take the letter F (which was not assigned by MapDrive) to assign your WinXP partition (so aiigning F: instead of J:).

    your program is able to reassign system drives also after installation had been finished?
    Yes, but nor the system partition, nor the partition with the page file cannot be reassign. You can run MapDrive in a normal DOS box.
    I have to do this prior to install WinXP, e.g. integration of your program into the custom installation CD in unattended mode?
    Booting on Win2K, you should be able to change the letter of your WinXP partition to F:; this is maybe THE solution...

    I hope to have wel understood and correctly reply to your questions,; in the opposite, ask again ;)

    Michel.

    ps: MapDrive should be integrated in nLite as an addon; see htp://www.german-nlite.de for further informations.

  3. It could help a lot of non-English users if the page Windows XP updates for use with HFSLIP would contain an additional parameter: the Language IDs of the Hotfixes :whistle:

    This could be done by replacing familyID= BY displaylang=<2_letters_language>&familyID=

    and ENU by <3_letters_language>

    ex:

    ...details.aspx?familyID=C717D943-7... replaced by
    ...details.aspx?displaylang=fr&familyID=C717D943-7...

    and

    ...d93b/ENU_Q832483_MDAC_x86.EXE... replaced by
    ...d93b/FRA_Q832483_MDAC_x86.EXE...

  4. @ECHO OFF
    SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
    ECHO RESCAN >TMP_LISTVOL.TXT
    ECHO LIST VOLUME >>TMP_LISTVOL.TXT
    ECHO EXIT >>TMP_LISTVOL.TXT
    START "Listing volumes" /WAIT /MIN CMD /C "DISKPART /s TMP_LISTVOL.TXT | MORE | FINDSTR /R /C:"^ *Volume [0-9][0-9]*" >TMP_LISTVOL.LOG"
    DEL TMP_LISTVOL.TXT

    FOR /F "usebackq delims=:" %%V IN (TMP_LISTVOL.LOG) DO (
    SET LINE=%%V

    SET VOLUME=!LINE:~2,9!
    SET TMP_OLD_LETTER=!LINE:~15,1!
    SET VOLTYPE=!LINE:~39,9!
    SET VOLINFO=!LINE:~71,8!
    SET VOLNAME=!LINE:~19,11!

    IF "!VOLTYPE!" == "REMOVABLE" (
    ECHO SELECT !VOLUME! >TMP_TEST1VOL.TXT
    ECHO REMOVE NOERR
    )
    )
    ECHO EXIT >>TMP_TEST1VOL.TXT
    START "Deassign Removable Drives" /WAIT /MIN CMD /C "DISKPART /s TMP_TEST1VOL.TXT
    DEL >>TMP_TEST1VOL.TXT

    Note that some space could be inserted before REMOVABLE => " REMOVABLE" or " REMOVABLE" or ...

    Type in a DOX box:

    DISKPART
    LIST VOLUME
    EXIT

    and see what to put...

    I've not tested it ;)

  5. I have a card reader that shows as 4 Removable Drives. I would like to make them disappear from my list. The script removes all drive letters anyway and then re-assigns them, so I need some assistance in telling it to not re-assign letters to removable drives.

    Any help in inserting the appropriate code would be appreciated.

    Did you try the last version (2005/11/04), I didn't deassign letters that don't need to be changed.
  6. One final question (honestly!)... is it possible to implement the functionality of CMDOW (http://www.commandline.co.uk/cmdow/) to eliminate, or reduce the popup/dos windows???
    Yes, but I already added "/MIN" in the lastest version, so the DOS batch windows will be minimized: in case of problem, you will know where it occured!

    ps: I am also using CMDOW in my unattended installation, but not with MAPDRIVE.CMD!

  7. Hi mdes.... drscouse.. again!!!
    You're welcome :yes:
    is it therefore possible to set a temp dir on the installation directory for mapdrive to use, and allow it to run from cd?
    Yes, as stated in the documentation which is at the .CMD beginning:
    :: Parameters:
    :: ----------
    :: 1. Language ID (ENU, FRA, DEU,...). No default value, mandatory.
    :: 2. TEST to do everything except the drives de/re-assignment. The log file
    :: TMP_MAPDRIVE_date_time.LOG is created: you can display it to see the expected assignments.
    :: The environment variables TMP_VOLDESC- show the assignments to be done.
    :: 3. TempPath : Path where temporary files will be created. Default is current directory.
    :: Path could be enclosed in quotes and could terminated by a backslsh.
    :: This is the 2d parameter if the TEST is omitted as the 2d one.

    You can use %SYSTEMDRIVE%:\...

    ps: I jut downloaded a new version in the 1st post.

  8. If there are no DVD.? on the system drive, then MAPDRIVE reassigns free letters to the DVD (same for CDR and HDD).

    In fact, currently, MAPDRIVE is assigning free letters (starting from the alphabet end) to drives that are not forced to be assigned a specific letter (via DRIVE.?, DVD.? and CDR.?). But you gave me a good idea: why do I reassign this kind of free letters instead of leaving the current letter if this one is not forced to be used?

    I will try to modify MAPDRIVE to do in such a way :)

  9. Hi Tinnef,

    You should put the files DRIVE.x on the drives y if you want the drive y to be reassign to x.

    So, to reassign the drive E: to K:, you should create a file DRIVE.K in E:\

    But, I see there is still an error in my script :( because of the "E: -> none" : I will correct it in a few hours. Could you send me the .log file after running MAPDRIVE.CMD with TEST as the 2d parameter to help me debugging.

    Thanks.

  10. I have a CDRW/DVD combi, which it is reassigning letters to, but it remove the letter from my DVDRW, making it unusable!

    Before any further tests, reassign the unusable DVDRW by:

    DISKPART
    SELECT VOLUME 1
    ASSIGN LETTER x
    EXIT

    where "x" should be any letter.

    Then uppercase the drive letters by renaming all your "Drive.x" to "Drive.X" (same with the 2 DVD.x). I will correct this later.

    And before attempting reassigning really, call MAPDRIVE.CMD with a 2d parameter = to TEST, like in:

    MAPDRIVE.CMD ENU TEST

    .

    Latest, test it on your actual Windows (i.e. not during a new installation): this will bequicker to test.

  11. I was getting a bit confused when trying to figure out exactly what I needed to change in the script....

    SET WINLANG=ENU

    Should this be my only alteration...???

    ""D:\mapdrive.cmd"" called with the following parameters: [] [] [] []

    Am I missing something here???

    You should call MAPDRIVE.CMD with at least one parameters as said in the script begining:
    :: Parameters:
    :: ----------
    ::     1. Language ID (ENU, FRA, DEU,...).  No default value, mandatory.
    ::     2. TEST to do everything except the drives de/re-assignment.  The log file
    ::        TMP_MAPDRIVE.LOG is created: you can display it to see the expected assignments.
    ::        The environment variables TMP_VOLDESC- show the assignments to be done.
    ::     3. TempPath : Path where temporary files will be created.  Default is current directory.
    ::        Path could be enclosed in quotes and could terminated by a backslsh.
    ::        This is the 2d parameter if the 1st one (TEST) is omitted.

    Next to come ;)

  12. i've tried to use this but it doesn't work for me, i want to add my hard drive and CD DVD disk drive shortcuts to the desktop, could you give an example how this could be done, please?
    Hi chyronn,

    You just have to create a shortcut of the folders you want in the folder

    InstallFolders\Add\Administrateur\Bureau\

    "Bureau", which is in French, should be replaced by "Desktop", and "Administrateur" by "Administrator".

    So, first create the above folder, then in the Windows Explorer, then after, create the shortcuts by right clicking in the created folder, choosing "New" / "Shortcut", and selecting the Desktop or your CD/DVD disk drive.

    Beware! I made some changes in the batch (download the last version, and see the 1.2 point in the description above).

    I any problem, ask :)

×
×
  • Create New...