Jump to content

Help making a batch file to run 1-click maintenance and shutdown PC


stratocaster009

Recommended Posts

stratocaster009

Hi guys!

Need help here on how to make a batch file to run Tuneup Utilities 1-click maintenance and after that will automatically shutdown the PC.

I don't know the right parameters for 1-click maintenance auto repair.

This is my command:

start /wait OneClick.exe /auto

taskkill /im explorer.exe /f

shutdown -s -t3 -f

OneClick won't auto repair the analyzed result and it won't close unless I press the close button.

Please help.

Thank you. :)

Link to comment
Share on other sites


  • Replies 7
  • Views 1.6k
  • Created
  • Last Reply

you should include the path of the program ! ! !

try this...

@echo on

cd /d "C:\Program Files\OneClick"

start "" /WAIT OneClick.exe /auto

taskkill /im explorer.exe /f

shutdown -s -t3 -f

Link to comment
Share on other sites


stratocaster009

you should include the path of the program ! ! !

try this...

@echo on

cd /d "C:\Program Files\OneClick"

start "" /WAIT OneClick.exe /auto

taskkill /im explorer.exe /f

shutdown -s -t3 -f

Doesn't work either. :(

I'm just wondering what might be the right switches for oneclick.exe.

/auto is not working. :think:

Link to comment
Share on other sites


when i look at the schedule task maintenance for Tuneup in task scheduler the parameter is $(Arg0)... and if tuneup activates his maintenance, it not actually auto repair and close oneclick like other utilities, but will prompt you to click to run the maintenance manually and close it

@echo on

cd /d "C:\Program Files (x86)\TuneUp Utilities 2012\"

start "" /WAIT OneClick.exe $(Arg0)

taskkill /im explorer.exe /f

shutdown -s -t3 -f

Link to comment
Share on other sites


stratocaster009

when i look at the schedule task maintenance for Tuneup in task scheduler the parameter is $(Arg0)... and if tuneup activates his maintenance, it not actually auto repair and close oneclick like other utilities, but will prompt you to click to run the maintenance manually and close it

@echo on

cd /d "C:\Program Files (x86)\TuneUp Utilities 2012\"

start "" /WAIT OneClick.exe $(Arg0)

taskkill /im explorer.exe /f

shutdown -s -t3 -f

Still doesn't work :(

Link to comment
Share on other sites


To close the program try adding another taskkill line with the process name. I'm not familiar with one click but I have written small batch programs. So try adding

taskkill /im OneClick.exe

Add that above the taskkill command you already have, that should kill oneclick. And I'm not sure if pid's change when you open up programs. But you could try

taskkill /pid (what ever the OneClick.exe pid is)

See if that helps.

-BTY

Link to comment
Share on other sites


stratocaster009

That doesn't help either but thanks, circaal.

All I just wanted is the command-line switches for oneclick.exe if there's any but the automatic run maintenance switch is what I am looking for specifically.

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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