It seems every path I take with AMS at late is hitting another wall, here is my new problem I sure I read on the forum about this before but I can't find it so I have to repost it.
I have a problem with File run and Shell extract, they both work fine if I don't pass a file or folder with spaces in it, I using a Dialog.FileBrowse to get the path, it all works fine until I give it a file with a space in the name, I have also tried including args file paths in "" but still no luck, i have no idea what ams is passing to the exe but sureis not valid data it just failes
EDIT
It seems when passing a path back in to any of these functions you have to pass it arg option path like so
"-open -p "\PATH WITH SPACES"\ ", what I only guessed when running the app I using via command line, but I can not see any note to this affect in the Help file or even forum, so there is your heads up.
EG
I have a problem with File run and Shell extract, they both work fine if I don't pass a file or folder with spaces in it, I using a Dialog.FileBrowse to get the path, it all works fine until I give it a file with a space in the name, I have also tried including args file paths in "" but still no luck, i have no idea what ams is passing to the exe but sureis not valid data it just failes
EDIT
It seems when passing a path back in to any of these functions you have to pass it arg option path like so
"-open -p "\PATH WITH SPACES"\ ", what I only guessed when running the app I using via command line, but I can not see any note to this affect in the Help file or even forum, so there is your heads up.
EG
PHP Code:
File.Run(APPPATH, "-open -I \"PATH WITH SPACES\" -O \"PATH WITH SPACE\"", WORKINGPATH, SW_HIDE, true);
Comment