Using `run` to run command doesn't generate log files

So I’m trying to update GitHub - cstook/LTspice.jl: julia interface to LTspice to work with modern Julia/LTspice and I’ve run into a strange problem.

When I run the following command in cmd

LTspice.exe  -b -Run C:\path\to\test2.asc

It generates various log files in the same folder as test2.asc

However when I run the same command with Julia run no files get generated anywhere I can see.

julia> run(`LTspice.exe  -b -Run C:\Users\torfi\Documents\programmingFun\ltspice\test2.asc`)
Process(`LTspice.exe -b -Run C:UserstorfiDocumentsprogrammingFunltspicetest2.asc`, ProcessExited(0))

Does run run commands in some kind of special context that the .exe can detect?
Or can run somehow suppress the creation of files?

I think this is your problem:

You either need to quote the backslashes (i.e. double them C:\\path\\...) or make them forward slashes (i.e. `C://path/…), both directions are valid in Windows.

1 Like