1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Issue with Call command in batch file

Discussion in 'Windows XP' started by briang, Sep 17, 2004.

Thread Status:
Not open for further replies.
  1. briang

    briang Thread Starter

    Joined:
    Jul 26, 2004
    Messages:
    43
    Hi I am having an issue with using the call command with a parameter in a batch file i am making to update some files for an application that is updated everymonth. I want the batch to call the second batch and use the same parameter that is placed on the original batch on the second batch. Please ANY help is well appreciated. I am banging my head on the wall with this one!. thanks.
    Here is the batch:


    del /f "logs\old-%1update.log"
    rename "logs\%1update.log" "old-%1update.log"

    echo Update APP Remotely Test Batch >> "logs\%1update.log"
    echo _____________________________________________________________________________________________________ >> "logs\%1update.log"
    Date /t >> "logs\%1update.log"
    Time /t >> "logs\%1update.log"
    echo ... >> "logs\%1update.log"

    echo -=========================================%1 START!=======================================- >> "logs\%1update.log"
    call "G:\Support\Batch Files\king.bat" %1
    REG QUERY \\%1.king.lab\HKLM\SOFTWARE\Oneil\GEA /v "warning" >> "logs\%1update.log"
    REG ADD \\%1.king.lab\HKLM\SOFTWARE\Oneil\GEA /v "Warning" /t REG_EXPAND_SZ /d "%%%%%%%" /f >> "logs\%1update.log"
    REG ADD \\%1.king.lab\HKLM\SOFTWARE\Oneil\GEA /v "Demo" /t REG_EXPAND_SZ /d "%%%%%%%" /f >> "logs\%1update.log"
    REG QUERY \\%1.king.lab\HKLM\SOFTWARE\Oneil\GEA /v "warning" >> "logs\%1update.log"
    if exist z:\spybot\spybot.bat xcopy G:\package\spybot\*.bat C:\spybot /s/e/i/f/c/y/d >> "logs\%1update.log"

    echo ... >> "logs\%1update.log"

    net use z: /del >> "logs\%1update.log" >> "logs\%1update.log"
    echo ... >> "logs\%1update.log"
    Date /t >> "logs\%1update.log"
    Time /t >> "logs\%1update.log"
    echo _____________________________________________________________________________________________________ >> "logs\%1update.log"
    echo Update APPs Remotely Test Batch Complete >> "logs\%1update.log"


    king.bat:
    @Echo Off

    echo -==============BEGIN===============-

    SET GELOCAL="\\%1.king.lab\c$\Program Files\GE-IPC CD-ROM"
    SET GENETWORK="G:\Package\UpdateIPL\GE"
    SET FALOCAL="\\%1.king.lab\c$\IPL"
    SET FANETWORK="G:\Package\ipl\Electrolux\DATA\FRIGIDAIRE.MDB"
    SET FANETWORK1= "G:\Package\ipl\Electrolux\DATA\Frigidaire-Service.mdb"
    SET FANETWORK2="G:\Package\ipl\Electrolux\Update"
    SET WPLOCAL="\\%1.king.lab\c$\IPL"
    SET WPNETWORK="G:\Package\ipl\whirlpool\DATA\WHIRLPOOL.mdb"
    SET WPNETWORK1="G:\Package\ipl\whirlpool\Update"

    echo -COPY OVER DATABASE FILES FOR APP UPDATE.

    XCOPY %WPNETWORK% "%WPLOCAL%\Database" /D /I /Y
    XCOPY %WPNETWORK1% %WPLOCAL% /E /D /I /Y

    echo -COPY OVER DATABASE FILES FOR APP UPDATE.

    XCOPY %FANETWORK% "%FALOCAL%\Database" /D /I /Y
    XCOPY %FANETWORK1% "%FALOCAL%\Database" /D /I /Y
    XCOPY %FANETWORK2% %FALOCAL% /E /D /I /Y

    echo -COPY OVER THE GE UPDATE FILES.
    XCOPY %GENETWORK% %GELOCAL% /E /D /I /Y

    echo -===============END================-
     
  2. briang

    briang Thread Starter

    Joined:
    Jul 26, 2004
    Messages:
    43
    did i put this question in the wrong topic?.
     
  3. briang

    briang Thread Starter

    Joined:
    Jul 26, 2004
    Messages:
    43
    bumping for support. please any suggestions are welcome. thanks.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - Issue Call command
  1. Mzinman
    Replies:
    8
    Views:
    1,036
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/275101

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice