I am creating a small program to copy a domain file for iWeb to a USB drive or an external hard drive or such. The program is designed to run from this USB-drive or external hard drive, and then create the directory from which the application is running. For instance. the application starts from ~ / Documents, the application must create a folder on the website ~ / Documents / (account name), and then copy the domain file to this folder. But when I try to run the application from a USB drive, it creates a folder under / called / (account name). How to fix it?
source
share