|
-
May 8th, 2003, 06:55 AM
#6
try this:
REM Check if this has been run before
reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v Status
IF ERRORLEVEL 1 GOTO update
GOTO quit
REM Do this if this is first run
:update
REM update and save result to logfile
reg.exe import test.reg >> %COMPUTERNAME%.txt
IF ERRORLEVEL 1 GOTO faulty
echo Update complete! >> %COMPUTERNAME%.txt
goto quit
:faulty
echo ERROR! >> %COMPUTERNAME%.txt
:quit
echo bye >> %COMPUTERNAME%.txt
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|