why would an exe not let..
Miscellaneous Forums/General Discussion/why would an exe not let..
Why would an executable file not let other executable files run it? For example if I write an app and simply do execfile("filename.exe") it wont do it.
I can even make a batch file and it wont with the batch file either, is this something that needs to be changed on the program im trying to run?
Is it the operating system preventing it, or just your program?
what operating system are you using?
Have you tried
"start filename.exe" instead of
"filename.exe" ?
Either in execfile() or BAT?
im sorry
in bat i use start filename and in blitzplus i use execfile(name)
and its windows xp pro
perhaps the .exe is protected and requires you to pass a key via the commandline?
are you sure blitz3d is using the same directory? If you are using any win32 file-open/save windows
or if you have used changedir() anywhere in the program etc then you may find it isnt.
at the start of all my apps i always do a:
global appdir$=currentdir()
to record the exact dir of startup.
then before any file op. like loading stuff or exec (assuming exe is in this folder)
changedir(appdir)
execfile ("myfile.exe")
or if you have subfolders:
changedir(appdir+"/otherprogs")
execfile ("myfile.exe")
you could just add the path directly to the filename, but im not sure if this would affect the program's starting folder (ie. if the program was to load its own media etc).
If you think it could be the EXE itself, what happens when you just type the name from the terminal (dos) prompt?
XP doesnt have "start.exe" anymore, maybe that's the problem.
My XP has a "start" command. I just typed start and pressed enter and since I gave no command line arguments, it started another command prompt.
yeha my xp has start command too :P