Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

LaunchExecutableEx

$
0
0

I'm trying to launch wordpad and have it open a specific file using LaunchExecutableEx. The problem arises when the specific file i want to open or its path contains a blank character, all characters after the blank character are trunciated and wordpad complans that it can't fine the file and closes. Is there away arouind?

eg.

 

Fmt(fname, "%s<%s", "C:\\ Test it\\TestFile One.asc");

Fmt(launchFile, "%s<%s %s", "C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe", fname);
error = LaunchExecutableEx (launchFile, LE_SHOWNORMAL, &handle);


Viewing all articles
Browse latest Browse all 5339

Trending Articles