Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

21 May 2017   #1
tf5tlk

Windows 7
 
 
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 System SpecsSystem Spec
.
21 May 2017   #2
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

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 System SpecsSystem Spec
21 May 2017   #3
johnhoh

Win7 pro x64
 
 

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 System SpecsSystem Spec
.

Reply

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




Thread Tools




Similar help and support threads
Thread Forum
Batch Files - Create a Menu to Execute Commands
How to Use a Batch File to Create a Command Prompt Menu to Execute Commands This tutorial shows the process one goes through when creating a batch file that opens a command prompt menu allowing you to launch commands, programs and more. I will only be executing programs in this tutorial,...
Tutorials
Is it possible to create a windows batch file to do this?
I generally run windows aero theme across all four monitors which i am happy with. However when i run a music app called cubase 5, i hear all sorts of squeaks and glitches when i simply move my cursor around the screen. The problem resolves itself when i switch to the standard windows classic...
General Discussion
Help creating a batch file to auto login to a website
I have created the following batch file to automatically load and login to a site, I created it and tested it on a computer running xp, but I can't get it to work on a windows 7 machine... "@ECHO OFF TITLE Water Monitor Auto Start Up mode con: cols=42 lines=1 REM Create a time delay...
General Discussion
Auto shutdown batch file help
Happy new year everyone, I'm looking to create a batch file to auto shut down my machine after a certain amount of time. Just want to check if i have got the 1st part of the command right in notepad but i was not sure how i go about putting in a timer for example if my download has 2hrs left i...
General Discussion
How to create a batch file that will move files based on the file type
How to create a batch file that will move files based on the file type? My Requirement : I need a batch file to copy all .doc files in all my HardDisk to a removable disk say (Z: drive) . Can anyone make it possible using a batch file?Please...Its urgent...
General Discussion


Our Sites

Site Links

About Us

Find 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 01:24.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App