Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: adam_az
Actually, you can. The environment variable is exploded when you make a file call.

Uh, no, it's not. My test app invokes a call to CreateFile() and it returns file not found -- and your assertion is inconsistent with the API docs. But what do I know -- I'm only compiling real code. You? You're just shooting off your mouth.
111 posted on 01/29/2004 4:52:29 PM PST by Bush2000
[ Post Reply | Private Reply | To 107 | View Replies ]


To: Bush2000
OK, you COULD use it in a vbscript, batch, or other active scripting goodie which is default installed on Windows systems, and which are treated as executables by default.

Your mention of CreateFile is a strawman, it's not one I mentioned.

You still could always use the other API call I mentioned previously to grab the environment variable, and stick that variable into the path for use with CreateFile, so CreateFile can do it, you just need an intermediate step.

In other words, you replied to only a part of my post an a method akin to picking fly crap from horse crap, ie, a distinction without a difference.

You said earlier that it was impossible, it's clearly not.
127 posted on 01/29/2004 7:47:28 PM PST by adam_az (Be vewy vewy qwiet, I'm hunting weftists.)
[ Post Reply | Private Reply | To 111 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson