Code: Select all
put "C:/PROGRA~2/PICO~1/PICOS~1/Ps.com /a M.CSV?" into tCommand
put shell (tCommand)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
put "C:/PROGRA~2/PICO~1/PICOS~1/Ps.com /a M.CSV?" into tCommand
put shell (tCommand)
Thanks for the suggestion. If I do this, the response I get is "The system cannot find the path specified.".SparkOut wrote:get shell(quote & tCommand & quote)
put it
I believe it is a command. If I try "C:/PROGRA~2/PICO~1/PICOS~1/Ps.com /a ?" I get the same non-result. With that command, it should output a list of commands.FourthWorld wrote:Is that second argument a file path? If so it may need quotes around it.
If I do that, I cannot close the window and then have to open the windows Task Manager to kill the process.FourthWorld wrote:Also, you can hide console windows by setting the hideConsoleWindows global property to true before calling the shell function.
Unfortunately no string is returned when I attempt to run the test.bat file with the LiveCode shell command. There is just a blinking cursor, like it is waiting for something to happen.FourthWorld wrote:What is the string returned from the function?
Yes, the output from the test.bat file looks something like this:FourthWorld wrote:Does the command work in Window's shell?
Code: Select all
2015-10-28, 02:12 PM
0ms: Measurements.CSV?
A,AC RMS,565.7 mV,565.7 mV,565.7 mV,565.7 mV,94.19 æV,16,WholeTrace,
A,Maximum,800.2 mV,800.2 mV,800.3 mV,800.3 mV,103.9 æV,16,WholeTrace,
Code: Select all
put "cd C:/Users/5imon/AppData/Local/HaptUX/ExManCmdWin/" into thePath
put "& ExManCmd /list" into theArgs
get shell(thePath & theArgs)
Code: Select all
put "cd C:/Users/5imon/AppData/Local/HaptUX/ExManCmdWin/" into thePath
put "& ExManCmd /list all" into theArgs
get shell(thePath & theArgs)