How can I change default directory location to execute cmd in ComandLinePowerShell?

Hi All,

Currently, I want to create a text file with content "Hello world" in C drive ( or anywhere which I can store file and then able to download) on Outsystem Server.

When I input this command "echo 'Hello, world.' > foo.txt" and submit, 'Powershell_Commander'  server action return this error as picture below.



It said that Access to the path is denied. I try to change directory location by using command line "CD\" but it still didn't work. Can anyone guild me how to do it?

Thank you.

Huy,

Solution

Hi Huy,


If you are using outsystem cloud env or any env then you can not direct access c drive of your system.


 Follow this link-

https://www.outsystems.com/forums/discussion/49212/how-to-upload-a-file-to-a-particular-folder-particular-path-in-server/


it will be helpfull.


Kind Regard

Rahul


Solution

Rahul Sahu wrote:

Hi Huy,


If you are using outsystem cloud env or any env then you can not direct access c drive of your system.


 Follow this link-

https://www.outsystems.com/forums/discussion/49212/how-to-upload-a-file-to-a-particular-folder-particular-path-in-server/


it will be helpfull.


Kind Regard

Rahul


Thanks Rahul Sahu