Hi,
when calling "Shell" you must use backslashes ("\"). A good way to achieve this is using a function like that:
Code: Select all
function winshell what
replace "/" with "\" in what
set the hideConsoleWindows to true
return shell(what)
end winshell
Should there be slashes they'll be corrected. And the flickering of the command line window is avoided.
Further, you'll save yourself a lot of troubles if you put quotes around all paths. To avoid unreadable code, use another function:
Code: Select all
function kwote what
return quote & what & quote
end kwote
Now, assuming your fld "command" contains some parameteres, your code could look like:
Code: Select all
put "Dependencies/Win/exiftool.exe" into exifToolPath
put kwote(exifToolPath) && field "command" && kwote(field "path") into newExif
put winshell (newExif) into tResult
One more thing that could go wrong is the relative paths you're using. In this case your Standalone (.exe) should be in the same location as the folder "Dependencies".
I have learned to write such as "./Dependencies/Win/exiftool.exe" - if I have to debug later I see immediately this is a relative path I have coded, and not a part of a "calculated" path meant for further concatenating ...
Edit:
I just happened to crash into something that may be of interest here:
"Shell" works in the current "defaultFolder", so be careful when setting this & using "shell" with relative paths!
Have fun!