ExecFile
Blitz3D Forums/Blitz3D Programming/ExecFile
| ||
Hi folks. I encountered a problem using ExecFile which I've also seen mentioned in a Blitzmax post:- http://www.blitzbasic.com/Community/posts.php?topic=43887#489745 The problem I was receiving is that my main Blitz executable 'fails' to execute (albeit via a somewhat protracted pathname) a remote executable. Does Blitz3D have issues with long pathnames with space characters buried within ? I RESOLVED the issue by removing spaces from the pathname and ensuring the path wasn't 5/6 directories long.... I am using the text command to print out the pathname to the executable (the pathname isn't hardcoded but dependant on where the main .exe is running from) and the pathname looks spot on. I have successfully run other exes from not so protracted pathnames i.e. C:/dirone/the.exe I have now moved the location of my child.exe up a couple of directories and removed spaces from the directory names and the problem has gone... |
| ||
Try this (add quotes): file$ = <whatever the original name is> file$ = Chr$(34) + file$ + Chr$(34) ExecFile file$ |
| ||
Cheers John, I''l give that a whirl |