Kelsenellenelvian Posted November 20, 2007 Share Posted November 20, 2007 Help me out guys please. I am making a run command so something runs after the desktop loads but I only want it to run once. Link to comment Share on other sites More sharing options...
jdoe Posted November 20, 2007 Share Posted November 20, 2007 RunOnce Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted November 20, 2007 Author Share Posted November 20, 2007 for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:set wpipath=%drive%\wpiSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceREG ADD %KEY%\WPI /V 1 /D "%wpipath%\WPI.hta" /fkk I added this during cmdlines section and it didn't go...Any ideas? Link to comment Share on other sites More sharing options...
jaclaz Posted November 20, 2007 Share Posted November 20, 2007 Cannot say what is wrong, but this:for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:set wpipath=%drive%\wpican be replaced by:set wpipath=%~d0\wpijaclaz Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted November 20, 2007 Author Share Posted November 20, 2007 Ok thanks that simplifies it a bit. 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