Batch file

Discussion in 'Software' started by threecoins, Apr 2, 2011.

  1. threecoins

    threecoins Private E-2

    I'm making a batch that will set services to demand using the sc service. I'm trying to make the file check if the sc.exe file is there, however, I keep running into problems with it. Here is what I've done so far:

    Even though it is on my computer, it takes me to ENDBATCH2, which tells me it isn't installed and to read the readme file again. I'd appreciate it if someone could help me with that.
     
  2. GermanOne

    GermanOne Guest

    Paths or file names with spaces must been enclosed in quotes.
    Code:
    if exist "C:\Program Files\Windows Resource Kits" goto NETWORK
    Regards
    GermanOne
     
  3. threecoins

    threecoins Private E-2

    Thank you, it works perfectly now.
     

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