On Tue, Mar 30, 2021 at 10:08 AM Vince Teachout <[email protected]> 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
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message:
https://leafe.com/archives/byMID/cacw6n4twvgcjxqxor-y_zqqqxfqsceawmos7jrnoly_e8yx...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.