I have two different batch files at two different path. When I call A.bat from B.bat, the batch file that i called(A.bat) doesn’t work. When i double click to A.bat it works fine. I think the problem is the path. However, I always use full paths. Why it doesn’t work?
All i want is to extract my file.
B.batch
call "C:\Documents and Settings\A.bat"
A.batch
SET earfile="E:\bee\deployments\sny1\SnyEarTest.ear"
SET winrar_exe="C:\.....\winrar.exe"
SET war_file="C:\...."
%winrar_exe% e -o+ %earfile% %war_file%
When i extract my war_file from the path that A.bat exist then my war_file is extracted into path B. Is there any solution to solve my problem?
It should work.
Add
pauseto the end ofB.batso you can see any error messages before the window closes.add a cd /d path at the top of B.bat to specify the folder in which the EAR file is decompressed.