#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Making a batch file that works (beginner)


    I'm new to programming.
    I'm trying to make a batch file (Watermark remover) that works but I can't get these commands to work. How can I fix it so it works?
    Thank you.

    @echo off
    echo.
    This removes Windows 7 Watermark
    pause
    bcdedit.exe -set loadoptions ENABLE_INTEGRITY_CHECKS
    bcdedit.exe -set TESTSIGNING OFF
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,997
    Rep Power
    9397
    What isn't working? Are you running the file as an administrator?
  4. #3
  5. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,841
    Rep Power
    480
    Maybe you need to include command line arguments?

    %*

    expands to all the arguments passed to the script.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo