Issue with Call command in batch file

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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================-
 

briang

Thread Starter
Joined
Jul 26, 2004
Messages
43
bumping for support. please any suggestions are welcome. thanks.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Members online

Top