Jump to content

Recommended Posts

Posted

hi friends :)

I want to run multiple runonceex and the first runonceex triggers the others but i have a strange problem. i believe that my runonceex.cmd is right but when executed there is a strange space between CDrom drive letter and OEM folder. and due to this problem CDrom drive is wanted to be opened. pls help me about correcting this problem.

i am sending you my runonceex.cmd file and a picture which shows the space between the drive letter and OEM folder as an attachment.

:cmdow.exe @ /hid

@echo on & title RunOnceEx & color 0b

SET CDROM=%~d0

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%05 /V 1 /D "%CDROM%\$OEM$\command\RunOnceEx1.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY%10 /V 1 /D "%CDROM%\$OEM$\command\RunOnceEx2.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY%15 /V 1 /D "%CDROM%\$OEM$\command\RunOnceEx3.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

runonceex.rar


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...