need to copy file outside cspro directory

Other discussions about CSPro
Forum rules
New release: CSPro 8.0
Post Reply
mixkiel
Posts: 2
Joined: March 19th, 2022, 10:55 pm

need to copy file outside cspro directory

Post by mixkiel »

is there a way to run unix shell commands from within CSPro?
execsystem "app:?"
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: need to copy file outside cspro directory

Post by Gregory Martin »

Assuming you're talking about Android, there is no way to do this using CSEntry. In any case, due to security controls, Android really restricts where an application can copy files. You can use filecopy to copy files outside of the csentry directory:

https://www.csprousers.org/help/CSPro/f ... ction.html

The two main locations that you can write to are CSEntryExternal and Downloads:

https://www.csprousers.org/help/CSPro/p ... ction.html

Typically if you want to share a file with another application, you use the Downloads directory. There is also a file sharing API for advanced uses:

https://github.com/CSProDevelopment/CSE ... FileAccess
Post Reply