Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Two bat similar and only one work fine. Why ?  (Read 4103 times)

0 Members and 1 Guest are viewing this topic.

Esgrimidor

    Topic Starter


    Hopeful

    Thanked: 1
    Two bat similar and only one work fine. Why ?
    « on: February 02, 2010, 03:34:28 AM »
    SpyBot Search and Destroy.

    First bat :

    echo off
    echo se trata de automatizar spybot. que se abra. se actualice. se inmunice. analice problemas, los corriga y se cierre
    M:
    cd "M:\Archivos de programa\Spybot - Search & Destroy\"


    SpybotSD.exe /autoupdate /autoclose
    SpybotSD.exe /autoimmunize /autoclose
    SpybotSD.exe /autocheck /autofix /autoclose

    echo
    echo off


    Note : This is with the no portable version of Spybot.
    The second bat is with the portable version.

    Second bat

    echo off
    echo se trata de automatizar spybot. que se abra. se actualice. se inmunice. analice problemas, los corriga y se cierre
    Y:
    cd "Y:\PORTABLES\Protección\Spybot\Spybot - Search & Destroy\"


    SpybotSD.exe /autoupdate /autoclose
    SpybotSD.exe  /autoimmunize /autoclose
    SpybotSD.exe  /autocheck /autofix /autoclose

    echo
    echo off


    Notes : This second bat is with the portable version. Manually with start - execute - cmd - (going to the installation directory) and proposing the lines goes well.
    I am using windows xp pro.

    It's despairing observ that this script don't go well and know nothing about it.

    Third bat :

    echo off
    echo se trata de automatizar spybot. que se abra. se actualice. se inmunice. analice problemas, los corriga y se cierre
    Y:
    cd "Y:\PORTABLES\Protección\Spybot\"

    rem añado la ruta completa en fecha 02.02.2010 para ver si funciona ahora.....
    "Y:\PORTABLES\Protección\Spybot\SpybotSDPortable.exe" /autoupdate /autoclose
    "Y:\PORTABLES\Protección\Spybot\SpybotSDPortable.exe"  /autoimmunize /autoclose
    "Y:\PORTABLES\Protección\Spybot\SpybotSDPortable.exe"  /autocheck /autofix /autoclose

    echo
    echo off


    Notes : No results . cmd windows flash and happen nothing.


    What can I do ?

    I really don't understand why the first bat go well and the others no.

    Thanks
    Excuse my language. I'm from Canary Islands



    No dejes que tu felicidad dependa de lo que no depende de tí.

    oldun

    • Guest
    Re: Two bat similar and only one work fine. Why ?
    « Reply #1 on: February 02, 2010, 04:42:29 AM »
    Try running the BAT file in a command window. It should give an indication where or why it is failing.

    Esgrimidor

      Topic Starter


      Hopeful

      Thanked: 1
      Re: Two bat similar and only one work fine. Why ?
      « Reply #2 on: February 02, 2010, 09:10:30 AM »
      the message

      El sistema no puede hallar la ruta especificada.

      The system can't find the specified path

      I think is for the accent in the "protección".

      What can i do ?

      No dejes que tu felicidad dependa de lo que no depende de tí.

      BillRichardson



        Intermediate

        Thanked: 15
        Re: Two bat similar and only one work fine. Why ?
        « Reply #3 on: February 02, 2010, 09:18:29 AM »


        What can I do ?



        Uninstall  the spanish version and install  the english version?

        Change the path and folder names to english?

        Use German version?

        Install  and run  Malwarebytes' Anti-Malware?

        Download, install and run Malwarebytes' Anti-Malware

        http://www.malwarebytes.org/mbam.php
        Bill Richardson

        oldun

        • Guest
        Re: Two bat similar and only one work fine. Why ?
        « Reply #4 on: February 02, 2010, 01:00:25 PM »
        the message

        El sistema no puede hallar la ruta especificada.

        The system can't find the specified path

        I think is for the accent in the "protección".

        What can i do ?



        The easiest solution would be to rename that directory to something else: e.g. Protect.

        Esgrimidor

          Topic Starter


          Hopeful

          Thanked: 1
          Re: Two bat similar and only one work fine. Why ?
          « Reply #5 on: February 02, 2010, 05:03:40 PM »
          It's not possible to rename. But the solution was copy the final folder to another place.

          In Protect goes many portable software about security. And many links to my program goldmine and others.

          Understood for the next time. Precisaly I was looking about using "ñ" in domains names. .....

          No dejes que tu felicidad dependa de lo que no depende de tí.

          oldun

          • Guest
          Re: Two bat similar and only one work fine. Why ?
          « Reply #6 on: February 02, 2010, 05:07:14 PM »
          Or you could try:

          Code: [Select]
          echo off
          echo se trata de automatizar spybot. que se abra. se actualice. se inmunice. analice problemas, los corriga y se cierre
          Subst P: "Y:\PORTABLES\Protección\Spybot"
          P:

          rem añado la ruta completa en fecha 02.02.2010 para ver si funciona ahora.....
          SpybotSDPortable.exe /autoupdate /autoclose
          SpybotSDPortable.exe  /autoimmunize /autoclose
          SpybotSDPortable.exe  /autocheck /autofix /autoclose

          Subst P: /D

          oldun

          • Guest
          Re: Two bat similar and only one work fine. Why ?
          « Reply #7 on: February 02, 2010, 05:10:34 PM »
          Sorry,

          There should be a CD Y: before the last line.

          Geek-9pm


            Mastermind
          • Geek After Dark
          • Thanked: 1026
            • Gekk9pm bnlog
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 10
          Re: Two bat similar and only one work fine. Why ?
          « Reply #8 on: February 02, 2010, 06:57:22 PM »
          Quote
          Precisaly I was looking about using  .....

          http://www.idnnews.com/?p=5704


          Esgrimidor

            Topic Starter


            Hopeful

            Thanked: 1
            Re: Two bat similar and only one work fine. Why ?
            « Reply #9 on: February 02, 2010, 07:53:33 PM »
            Sorry,

            There should be a CD Y: before the last line.

            I don't understand. Can you put the whole script ?

            Thanksss
            No dejes que tu felicidad dependa de lo que no depende de tí.

            oldun

            • Guest
            Re: Two bat similar and only one work fine. Why ?
            « Reply #10 on: February 02, 2010, 11:02:43 PM »
            Code: [Select]
            Third bat :

            echo off
            echo se trata de automatizar spybot. que se abra. se actualice. se inmunice. analice problemas, los corriga y se cierre

            REM If P: is already in use, use another letter
            Subst P: "Y:\PORTABLES\Protección\Spybot"

            P:

            rem añado la ruta completa en fecha 02.02.2010 para ver si funciona ahora.....
            SpybotSDPortable.exe /autoupdate /autoclose
            SpybotSDPortable.exe  /autoimmunize /autoclose
            SpybotSDPortable.exe  /autocheck /autofix /autoclose

            CD %~d0
            Subst P: /D

            echo
            echo off


            Esgrimidor

              Topic Starter


              Hopeful

              Thanked: 1
              Re: Two bat similar and only one work fine. Why ?
              « Reply #11 on: February 03, 2010, 03:39:37 AM »
              I try an will comment

              Best Regards

              No dejes que tu felicidad dependa de lo que no depende de tí.