Jump to content

multi runonceex.cmd and strange problem


Recommended Posts

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

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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