29 posts
Posted 04 January 2013 - 03:23 PM
So I got a file created using my file explorer named test. This file is located in a directory called my programs. Now, basically you can right click the icon, and click edit and it does shell.run("edit",blah,blah) I was wondering, is there a way to edit a file within a folder that has spaces? It is not wanting to edit it because of the space. It runs shell.run("edit","my programs/test") but doesn't actually edit that, it edits my. I hope I make a tiny bit of sense :)/> In the end, How do I preform shell.run("edit","my programs/test')?
235 posts
Location
/dev/earth1aus5
Posted 04 January 2013 - 03:27 PM
I wouldn't know, but it sounds like edit doesn't like spaces.
Try renaming "my programs" to just "programs" or "my_programs".
29 posts
Posted 04 January 2013 - 03:29 PM
That is what I figured I would have to do. I am thinking making it so if you hit space, instead of a space, it does a - or a _ or something else because like you said, edit doesn't like spaces. It is basically because the space seperates the string into 2 arguments. I am gonna go edit it now but still want to know if it is possible. :)/>
235 posts
Location
/dev/earth1aus5
Posted 04 January 2013 - 03:34 PM
I don't know if this'll work or not, but if you're running Windows, you could try using the old DOS format.
Try calling "edit MYPROG~1/test"