I want a c:\batchfile.bat to run on a users first login and then not run on subsequent logins. I think the term is "run once" but I dunno.
Thanks, dont work though :(
Ive got:
c:\test.bat
and
test.reg, which is
HKLM,Software\Microsoft\Windows\CurrentVersion\RunOnce,"SilentApp",,"c:\test.bat"
but I get:
QuoteThe specified file is not a registry script.You can only import binary files from within the registry editor
Still missing something :(
Ah! need [ ] brackets :D
edit:
hmmm, it went into the registry ok, but the batchfile didnt run :?
Woo!
QuoteWindows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz170]
@="Mapped Drives"
"1"="test.bat"
Works :)