I'm looking to find a way to execute a windows command prompt command to either run a python script, or a curl command. Currently my code looks like:
command := 'cd C:/Users/laptop/Desktop && python file.py';
SysProcess.SysProcessExecuteCommand(pszComand:=command,pResult := ADR(Result));
If I change the command to shutdown it works and will turn off my computer. Everything else I've tried does not work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same situation.
It seems like the staff doesn't reply to questions about SysProcess.
As far as I understand, it does work better on Linux.
Let's try solving it.
I already tried 'python --version > c:\test\text.txt' but it doesn't work.
When trying 'cd c:\test && dir > c:\test\text.txt' I can see the directory listing.
I wonder if something is allowing it to access only CMD core commands.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm looking to find a way to execute a windows command prompt command to either run a python script, or a curl command. Currently my code looks like:
command := 'cd C:/Users/laptop/Desktop && python file.py';
SysProcess.SysProcessExecuteCommand(pszComand:=command,pResult := ADR(Result));
If I change the command to shutdown it works and will turn off my computer. Everything else I've tried does not work.
I have the same situation.
It seems like the staff doesn't reply to questions about SysProcess.
As far as I understand, it does work better on Linux.
Let's try solving it.
I already tried 'python --version > c:\test\text.txt' but it doesn't work.
When trying 'cd c:\test && dir > c:\test\text.txt' I can see the directory listing.
I wonder if something is allowing it to access only CMD core commands.