Jump to content

kamizoli

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

Everything posted by kamizoli

  1. Thank You Michel for your reply. But it is not working. Running start "MapDrive" /wait "C:\Install\MapDrive.cmd DEU %SystemDrive%\Temp >%SystemDrive%\Temp" it says it can't find C:\Install\MapDrive.cmd DEU %SystemDrive%\Temp >%SystemDrive%\Temp By the way the syntax should be start "MapDrive" /wait "C:..." Doing it this way: start "MapDrive" /wait "C:\Install\MapDrive.cmd" DEU %SystemDrive%\Temp >%SystemDrive%\Temp It finds mapdrive.cmd but I get this message: "C:\install\MapDrive.cmd" called with the following parameters: [DEU] [C:\Temp] [] [] Der Verzeichnisname ist ungültig. The German text says that the directory name is not valid. Maybe it is because I haven't a directory C:\Temp? Mapdrive starts working, but doesn't close its window and after its finished there is a second CD Drive in the explorer, which is not there in real. Can you explain to me, why mapdrive is called diffrently from Runoncex and and from a batch or CMDLINES.TXT and what the two parameters (%SystemDrive%\Temp >%SystemDrive%\Temp) are for? I'm not good enough in batch programming to find out, by reading your batch. After experimenting a bit I found this: CALL C:\install\MapDrive.cmd DEU >%SystemDrive%\MapDrive.log 2>&1 and it is working for me perfektly. using CALL C:\Install\MapDrive.cmd DEU %SystemDrive%\Temp >%SystemDrive%\Temp I got the same error with the invalid directory name as above. The problem with the second not existing CD-Drive was my mistake. I forgot, that a new version of one of my programs installs a virtual cd drive. Thank you very much Michel @ Yzöwl: While writing this I haven't seen your post. But in the end I did it the way you indicated. Though the double-quotes didn't seem to be the problem, as I have also tryed it without quotes. I starts running but doesn't go back to my original batch. Many thanks to both of you.
  2. Dear mdes, I'm using your Mapdrive.cmd now for years and it always worked fine. Really a great program! So far I run it from RunOnceEx, with your code: REG ADD %KEY%\001 /V 1 /D "C:\Install\\MapDrive.cmd DEU >%SystemDrive%\MapDrive.log 2>&1" /f Like given in the comments. It always worked. 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. I got it working manualy when my batch stopped and I changed into the folder c:\Install\ and startet it there by typing MapDrive.cmd DEU >Mapdrive.log. But this doesn't work executet from my batch which it should, shouldn't it? Apart from that it always leaves a not existing second CDRom Drive in Explorer. And doesn't Exit anymore. Have you an Idea how I can make it run from a batch. Thank You very much! Kamizoli
  3. Hello. I'm new here. And I hope that someone can help me with my problem and that anyone still follows this thread after so long time. When I use DriveMap with cmdlines.txt it never changes my driveletters. It starts running an but then it stops without any changes. I can just read some access denied messages flashing and the cmd window closes. I have the MapDrive.cmd in the $OEM$ directory and run it with "MapDrive.cmd DEU" from cmdlines.txt. Whe I use it on the running system afterward it runs without a problem. Has anyone an idea what ist going wrong?
×
×
  • Create New...