|
Answer» hi guys, i have created a batch file which goes in this WAY cd PROGRAM Files\Microsoft Visual Studio 10.0\VC vcvarsall.bat timeout 100 tf pause
My problem is after vcvarsall.bat execution its not going to next command i,e tf command is not executing . so can you guys please suggest me is the batch file creation is proper.i need to execute the tf commands after executing the vcvarsall.bat file from created batch fileuse the CALL keyword to launch batch files.
Code: [Select]cd "\Program Files\Microsoft Visual Studio 10.0\VC" call vcvarsall.bat timeout 100 tf pause
thanks fox but i am facing 1 more problem now. eventhough if i am using call keyword 'm unable to execute next command. E: cd Xilinx\14.6\ISE_DS call settings32.bat XMD help running cd C:/zynq_manufacturing_images dow C:/zynq_manufacturing_images/fsbl_forced_jtag.elf con **this is the commands 'm written in batch file** its working till call settings32.bat after that rest commands are not executing & even created batch file as stopped workingThere's a few mighty strange commands there.
But what you should do is put a pause command on the line above the XMD command and see if it executes and shows on the screen.
If it doesn't then something in the bat file is running and not returning to the cmd prompt. You need to find which command it is, or show us and we can help.
i tried to put pause & its working till pause after that 'm unable to execute the rest of all commands: E: cd Xilinx\14.6\ISE_DS\EDK\bin\nt pause xmd.exe pause help running cd C:/zynq_manufacturing_images dow C:/zynq_manufacturing_images/fsbl_forced_jtag.elf con sleep 5 stop dow -data devicetree.dtb 0x4A00000 dow -data devicetree_default.dtb 0x2A00000 dow -data uramdisk.image.gz 0x2000000 dow -data uImage 0x3000000 dow -data def_boot.bin 0x4300000 dow -data boot.bin 0x4200000 dow u-boot.elf con Pause
And i have attached image also how XMD command console looks like. Please suggest me how to proceed as XMD console looks different
[recovering disk space, attachment deleted by admin]It looks like you are running a debugger and expect the batch file to enter commands into the debugger. It doesn't work the way you expect it to.
You need to read the debugger help to see how a script file can be used in the debugger.
Then a batch file can launch the debugger with a separate script file, if it supports that method of operation.It's actually looks like it's doing what it is supposed to do.
1.) Is there a scripting options for XMD?
2.) have you tried "start /wait xmd.exe" to force the execution of xmd before returning to the script?
|