.bat file help

Discussion in 'Software' started by threecoins, Jan 23, 2010.

  1. threecoins

    threecoins Private E-2

    I want to make a .bat file to run ccleaner, auslogics track eraser, defrag, and disk cleanup at the same time. I have gotten it to open them but is there a way to make it run them? I am new to programming. Any help appreciated.
     
  2. threecoins

    threecoins Private E-2

    I got ccleaner running.
     
  3. GermanOne

    GermanOne Guest

    Hi threecoins.

    The only way is to use the START command. First figure out path and exe file and its command line options (if existing). The path is not needed if the exe is placed in C:\WINDOWS or C:\WINDOWS\system32 (like defrag).
    So use the following syntax:
    start "" "c:\somewhere\any.exe" parameter options

    e.g.
    Code:
    @echo off
    start "" "defrag.exe" C: -f
    :: here the next start line
    
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds