How do I create a batch file to run commands on auto?


  1. Posts : 12
    Windows 7
       #1

    How do I create a batch file to run commands on auto?


    the thread that i made previously only got 1 answer that really didnt have anything to do with my problem so thought it would be ok if another one was made, and not trying to spam, here are the commands for the batch file
    netstop sppvc
    cd %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform
    rename tokens.dat tokens.bar
    cd %windir%\system32
    net start sppsvc
    slui.exe


    thanks :)
      My Computer


  2. Posts : 25,847
    Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
       #2

    If you would of done as Roy requested and complete this. More answer might of came.


    http://go.microsoft.com/fwlink/?LinkID=52012

    explorer.exe as title of error. file not associated with program - Windows 7 Help Forums

    Jack
      My Computer


  3. Posts : 1,363
    Win7 pro x64
       #3

    to make a batch file of those commands, open notepad and cut and paste the following into it:

    netstop sppvc
    cd %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform
    rename tokens.dat tokens.bar
    cd %windir%\system32
    net start sppsvc
    slui.exe

    then when you save the file, do it this way:

    file > save
    file name > idontknowaname.cmd
    save as type > all files

    then click save. Then click on the file, within explorer or your desktop, wherever you put it, and it will run
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:14.
Find Us