HarshReality Posted December 7, 2007 Share Posted December 7, 2007 Here is what I am curious about and I didt put this in G's thread since its off his support. I'd like to be able to have conditional operation on insert.. By example: If exists C:Safety GOTO END <-- to prevent accidental operation && Is there a way to confirm the OS? ( IF %OS% !=XP GOTO END ) <-- yes I know its not correct, is off the top of my head as an example Also maybe back up lisc.(If XP condition is met) Copy /Y %SystemRoot%System32wpa.* %logdir% Scratch I just added to the bottom of Go.bat IF EXISTS %SystemRoot%System32wpa.dbl ( ECHO ----------------------------------------------------------------------------------------------------------------------------- >> %log% 2>&1 ECHO +----------------------------------+ >> %log% 2>&1 ECHO + [XP Lisc Located] + >> %log% 2>&1 ECHO +----------------------------------+ >> %log% 2>&1 COPY /Y %SystemRoot%System32wpa.dbl %logpath% ) Quote Link to comment Share on other sites More sharing options...
excid3 Posted December 7, 2007 Share Posted December 7, 2007 Try this: ver | find "2003" > nul if %ERRORLEVEL% == 0 goto ver_2003 ver | find "XP" > nul if %ERRORLEVEL% == 0 goto ver_xp ver | find "2000" > nul if %ERRORLEVEL% == 0 goto ver_2000 ver | find "NT" > nul if %ERRORLEVEL% == 0 goto ver_nt Taken from: http://malektips.com/xp_dos_0025.html Quote Link to comment Share on other sites More sharing options...
HarshReality Posted December 7, 2007 Author Share Posted December 7, 2007 Well Im part of the way there... Added to the top of Go.bat and used your recommendation to bypass Vista operation Ver | find "6.0" > nul IF %ERRORLEVEL% == 0 ( ECHO ----------------------------------------------------------------------------------------------------------------------------- >> %log% 2>&1 ECHO +----------------------------------+ >> %log% 2>&1 ECHO + [OS: Vista Payload Disabled] + >> %log% 2>&1 ECHO +----------------------------------+ >> %log% 2>&1 GOTO END ) IF EXIST C:Safety.dat ( ECHO ----------------------------------------------------------------------------------------------------------------------------- >> %log% 2>&1 ECHO +----------------------------------+ >> %log% 2>&1 ECHO + [System Protected] + >> %log% 2>&1 ECHO +----------------------------------+ >> %log% 2>&1 GOTO END ) And altered the last entry: IF EXIST %systemroot%system32wpa.dbl ( ECHO ----------------------------------------------------------------------------------------------------------------------------- >> %log% 2>&1 ECHO +----------------------------------+ >> %log% 2>&1 ECHO + [XP Activation Located] + >> %log% 2>&1 ECHO +----------------------------------+ >> %log% 2>&1 MD "%logdir%"XP-Activation COPY /Y %systemroot%system32wpa.dbl "%logdir%"XP-Activation ) :End Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.