darksimoon Posted November 6, 2007 Share Posted November 6, 2007 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 0bSET CDROM=%~d0 SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%05 /V 1 /D "%CDROM%\$OEM$\command\RunOnceEx1.cmd" /frundll32.exe iernonce.dll,RunOnceExProcessREG ADD %KEY%10 /V 1 /D "%CDROM%\$OEM$\command\RunOnceEx2.cmd" /frundll32.exe iernonce.dll,RunOnceExProcess REG ADD %KEY%15 /V 1 /D "%CDROM%\$OEM$\command\RunOnceEx3.cmd" /frundll32.exe iernonce.dll,RunOnceExProcess EXITrunonceex.rar Link to comment Share on other sites More sharing options...
rajesh.kumar Posted November 6, 2007 Share Posted November 6, 2007 you have that space at the end of your line (SET CDROM=%~d0 ). remove that. it will work fine. Link to comment Share on other sites More sharing options...
darksimoon Posted November 6, 2007 Author Share Posted November 6, 2007 rajesh.kumarthanks a lot for your reply. i did it as you said and it worked. )) have a nice day. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now