(imported topic written by SystemAdmin)
Hello All
Actually , i started to get frustrated to run My batch file using any of the common known actions commands ( wait , waithidden , run , runhidden , runquiet )!!!
and the big disaster is that when i test any of these commands on the Fixlet Debugger , it give me successfull response while actually it doesn’t do any thing and the patch not run
Here is my action script
=================================================
delete __appendfile
delete chkcurrdef.bat
appendfile @ECHO OFF
appendfile copy *.fxf antipest.fxf
appendfile find “extract defs” antipest.fxf >temp
appendfile for /f "tokens=2 delims= " %%a in (‘more/e +2^< temp’) do (echo %%a >> temp2)
appendfile for /f “tokens=1” %%a in (‘more temp2’) do set def=%%a
appendfile REG ADD HKLM\Software\Bigfix\Antipest /v Def /t REG_SZ /d %def% /f
appendfile del temp*
move __appendfile “{pathname of parent folder of regapp “BESClient.exe” & “__BESData\BigFix AntiPest\chkcurrdef.bat”}”
wait “{pathname of client folder of site “BESSupport” & “\RunQuiet.exe”}” “{pathname of parent folder of regapp “BESClient.exe” & “__BESData\BigFix AntiPest\chkcurrdef.bat”}”
===================================================
This is the original batch code , all commands are run successfully except the Last command which should run the batch file !
i have tried to replace the last command with the following commands
waithidden/runhidden “{pathname of parent folder of regapp “BESClient.exe” & “__BESData\BigFix AntiPest\chkcurrdef.bat”}”
waithidden cmd.exe “{pathname of parent folder of regapp “BESClient.exe” & “__BESData\BigFix AntiPest\chkcurrdef.bat”}”
and actually when i test any of these commands on the Fixlet debugger , it give me good respose with the execution time , but the batch is not executed !
NB : when i run the batch manually , it run successfully
NB : i have many other batchs files which run normally on the same machine and with the normal commands , so the problem should be in this batch
Thanks in advance for you Help
Ahmed Hamed