I'm trying to automate LTSpice using the command line. I have tried the following command several times:

test.asc -run -b

However, it only opens my schematic in LTSpice and does not run it! I have no idea whats wrong with it. The schematic is a very simple circuit which should be run in less than a second. Does any one have idea? How should I resolve this issue?


  • \$\begingroup\$ Did you have a look at the error log? \$\endgroup\$ – PlasmaHH Oct 21 '15 at 14:26
  • \$\begingroup\$ There is no error log when I use this command! The schematic opens but does not run. And the error log tab is off! \$\endgroup\$ – user89644 Oct 21 '15 at 14:30
  • \$\begingroup\$ Then try opening it and have a look... \$\endgroup\$ – PlasmaHH Oct 21 '15 at 14:34
  • \$\begingroup\$ As I said there is no error log! The circuit should be run to have a error log I think. Mine doesn't even run when I use that command line. \$\endgroup\$ – user89644 Oct 21 '15 at 14:39
  • \$\begingroup\$ There is no problem with the circuit itself. I can run it manually using the GUI. But when I use the command line, it doesn't work! \$\endgroup\$ – user89644 Oct 21 '15 at 14:48

The command "test.asc -run -b" does not run LTSpice, it simply opens the file "test.asc". It only opens in LTSpice because the file association for ".asc" is assigned to LTSpice in the operating system (if it was assigned to eg. notepad then it would open in that program instead). The ".asc" filetype is set up to only pass the file name to LTSpice, not the whole command line.

Your command should start with the name of the executable you want to run ie. "scad3.exe", followed by any parameters you want to give it ie. "test.asc -run -b". LTSpice will then be able to read the full command line, run the simulation and produce the expected output files ("test.log", "test.net").


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.