On Tue, Mar 30, 2021 at 10:08 AM Vince Teachout vinny@caracal.net wrote:
Granted, it's a short drive, but....
I know the feeling. I can walk from here ;)
This is making me nuts. I've paraphrased and simplified the problem to the gist of it:
My program does COPY FILE (cInputFile) to (cOutputFile). This works great. EXCEPT if the output file is on my desktop, then I get the message: "Cannot create file c:\users\me\desktop\file.ext."
It doesn't matter that I'm an Admin user, and it doesn't matter if I also right-click and run the program as admin.
Yeah, that's nuts-making.
Did you perhaps move your Desktop shortcut to another drive? I had a client issue where their personal folders were mapping to network shares and... weird things happened.
I did:
StrToFile("This is a test. This is only a test.","testfile.txt") cInFile = fullpath("testfile.txt") cOutFile = "C:\Users\tedro\Desktop\testfile.txt") COPY FILE (cInFile) TO (cOutFile)
and it worked.
Note my username is truncated (8.3!) in the Desktop path. Perhaps that's what you're running into? (In File explorer, right-click on Desktop, Properties for the creative renaming)
"A mind is a terrible thing to lose." -- Dan Quayle
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---