ExecFile()

BlitzPlus Forums/BlitzPlus Programming/ExecFile()

I'm not experiencing problems calling programs with parameters. For example, this works fine:
cmd$ = "notepad newfile.txt"
ExecFile(cmd)

...as does:
cmd$ = "cmd /k cd c:"
ExecFile(cmd)


Do you have spaces in your path? If so, you'll have to use quotes, like this:
cmd$ = Chr$(34)+"c:\program files\blitzplus\program.exe"+Chr$(34)+" param1 param2"
ExecFile(cmd)


Finally, are you sure you're handling command line parameters correctly?