Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WD21] How to check/run stupid exefilenames?

$
0
0
Hi all

Can somebody please teach me how to check for existence and run stupid, long filenames with spaces in their path, like
//The filename is saved in a file like this:
XPARAM.Filename = "C:\StupidProgram Files (x86)\Stupid Subdirectory\Stupid.exe"
//That is, it is in the item without the "inch marks"

sStupidFileName is string = XPARAM.Filename

IF NOT fFileExist(sStupidFileName) THEN
        //The stupid file is never found because it has spaces in the path!
	Warning("The stupid file is not found:" + sStupidFileName)
	ReturnToCapture()	
END

ExeRun(sStupidFileName)
The help for Exerun tells to use [] or three """inch marks""", but how do I do that for a file item/Variable? The help for fFileExist does not seem to recognize this problem at all.

Best regards
Ola

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>