Jump to content

Pringlis

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Pringlis

  1. OK, cheers. The keys are added by executing a .reg file which adds them. I've verified that they're added, but no restart, nowt happens. Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce] "SetupEnv"="%AUTOTESTDIR%\\WindowsInstallerFiles\\RunWindowsInstallEnv.bat" "RunSanityTest"="%AUTOTESTDIR%\\RunWindowsSanityTest.bat" AutoTestDir is a System Environment variable pointing to the path of the .bat file. I had also tried getting cmd.exe to execute the commands but no luck there either. "SetupEnv"="\"%WinDir%\\system32\\cmd.exe\" /c \"%AUTOTESTDIR%\\WindowsInstallerFiles\\RunWindowsInstallEnv.bat\"" "RunSanityTest"="\"%WinDir%\\system32\\cmd.exe\" /c \"%AUTOTESTDIR%\\RunWindowsSanityTest.bat\"" Thanks! Neil
  2. Hey folks, I'm trying to run a .bat file from the RunOnce key in the registry but it never seems to execute. Quite simply, nothing happens! In contrast, a .exe will open fine. Is it the case that .bat files cannot be run from the registry or is something more sinister wrong? I did once have the suspicion that it was to do with my path being slightly broken (some program went mad and added itself many times pushing out other items) but I am not sure. I'm on Windows XP Pro. Cheers for any help, Neil
×
×
  • Create New...