Hello,
I am trying to run a python script using command prompt activity. I need to navigate to folder and then execute python.
- cd OneDrive - company\Internt\02_RPA_Prosesser\Python
- python getExcluds_final.py
Any suggestions?
Hello,
I am trying to run a python script using command prompt activity. I need to navigate to folder and then execute python.
Any suggestions?
@applePie Please try with &&. The command prompt will execute one command at a time. You can use below syntax to run two commands in single line
cd âOneDrive - company\Internt\02_RPA_Prosesser\Pythonâ && python getExcluds_final.py
Hi, I tried that already and it didnt workâŚ
I get this error:
python: canât open file âC:\Program Files\ElectroNeek Studio Pro\Loader\getExcluds_final.pyâ: [Errno 2] No such file or directory
Not sure how to get around it
I think Iâve faced this same problem before. If Iâm not mistaken, itâs related to the quotes. They are necessary when there are spaces between caracters, but then the command doesnât always work with the Command prompt
acticity.
Try changing spaces for underscores in the directory (you have to actually change the names of the folders) and retry the command without quotes.
So instead of this:
cd âOneDrive - company\Internt\02_RPA_Prosesser\Pythonâ && python getExcluds_final.py
You change the names of the actual directory folders and try this:
cd OneDrive_-_company\Internt\02_RPA_Prosesser\Python && python getExcluds_final.py
Hi!
Thank you for your answer, but sadly i cannot change the names as it is company One Drive and company folder namesâŚ
I know i could move the .py script to local directory, but i do not want to do it as i need to keep the scripts on company cloud and be able to run it from any company PC
Maybe the problem is in this directory. Iâve never used a python script in ElectroNeek, so I donât really know how it worksâŚ
@applePie Does this command alone working fine?
I tried to upload .neek, but it gave me this error:
I tride zip file, but i got error that new users cant upload files
When i navigate to folder it says it has been executed successfully. But when i tried to do two command prompet activities, it gave the same error as the double line seperated with &&.
My .neek file is just the command prompet activity with the command. I just need the Electroneek to execute the python script for this flow.
yes, i think so, but i am not sure why it goes to this directoryâŚ