Announcement

Collapse
No announcement yet.

File and Shell functions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File and Shell functions

    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
    PHP Code:
    File.Run(APPPATH"-open -I \"PATH WITH SPACES\" -O \"PATH WITH SPACE\""WORKINGPATHSW_HIDEtrue); 
    Last edited by kingzooly; 02-28-2016, 06:17 AM. Reason: Fixed myself
    Plugins or Sources MokoX
    BunnyHop Here

  • #2
    And you included the double backslash in the path e.g. "c:\\name of file.ext"??

    Otherwise I can't think of any mistake, I don't have any problems with these functions or filenames.

    Comment


    • #3
      Originally posted by Friethoe View Post
      And you included the double backslash in the path e.g. "c:\\name of file.ext"??

      Otherwise I can't think of any mistake, I don't have any problems with these functions or filenames.
      IF your looking at the first part where it says APPPATH this is all set right, it was the argument part what was wrong and I posted how to fix that as its not in the help file, APPPATH is a vrb set else where in the app, its a dynaimc function the path is not hardcoded.
      Plugins or Sources MokoX
      BunnyHop Here

      Comment

      Working...
      X