Jump to content

Modification to G. Switchblade possible...?


Recommended Posts

Posted

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 ----------------------------------------------------------------------------------------------------------------------------- &gt;&gt; %log% 2&gt;&amp;1
    ECHO +----------------------------------+ &gt;&gt; %log% 2&gt;&amp;1
    ECHO +         [XP Lisc Located]        + &gt;&gt; %log% 2&gt;&amp;1
    ECHO +----------------------------------+ &gt;&gt; %log% 2&gt;&amp;1
        COPY /Y %SystemRoot%System32wpa.dbl %logpath%
    )

Posted

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" &gt; nul
IF %ERRORLEVEL% == 0 (
    ECHO ----------------------------------------------------------------------------------------------------------------------------- &gt;&gt; %log% 2&gt;&amp;1
    ECHO +----------------------------------+ &gt;&gt; %log% 2&gt;&amp;1
    ECHO +  [OS: Vista Payload Disabled]    + &gt;&gt; %log% 2&gt;&amp;1
    ECHO +----------------------------------+ &gt;&gt; %log% 2&gt;&amp;1
        GOTO END
    )

IF EXIST C:Safety.dat (
    ECHO ----------------------------------------------------------------------------------------------------------------------------- &gt;&gt; %log% 2&gt;&amp;1
    ECHO +----------------------------------+ &gt;&gt; %log% 2&gt;&amp;1
    ECHO +       [System Protected]         + &gt;&gt; %log% 2&gt;&amp;1
    ECHO +----------------------------------+ &gt;&gt; %log% 2&gt;&amp;1
        GOTO END
    )

And altered the last entry:

IF EXIST %systemroot%system32wpa.dbl (
    ECHO ----------------------------------------------------------------------------------------------------------------------------- &gt;&gt; %log% 2&gt;&amp;1
    ECHO +----------------------------------+ &gt;&gt; %log% 2&gt;&amp;1
    ECHO +      [XP Activation Located]     + &gt;&gt; %log% 2&gt;&amp;1
    ECHO +----------------------------------+ &gt;&gt; %log% 2&gt;&amp;1
        MD "%logdir%"XP-Activation
        COPY /Y %systemroot%system32wpa.dbl "%logdir%"XP-Activation
    )

:End

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...