FastCopy does not recognize environment variables

137 views
Skip to first unread message

陈一平

unread,
Sep 25, 2020, 3:22:49 AM9/25/20
to FastCopy support forum
Version Info (principle, latest ver):
FastCopy (64-bit) ver 3.92

OS/Environment:
Windows 10 10.0.19042.508, x64

Error Message / Logs:
FindFirstFileEx(The system cannot find the path specified. 3) : C:\Users\%UserNameRedacted%\AppData\Local\Programs\FastCopy\%SystemRoot%\Web\Wallpaper

Error Details / Situations:
%SystemRoot% varible should redirect to the Windows directory, C:\Windows in my case. The intended behavior is to just have the included wallpapers copied out.

Specified Params : copy-mode / filters / other options
Native GUI with no params.

Reproduction Steps:
1. Type in any path with enviroment varible into the "Source" textbox.
I will be demonstrating with %SystemRoot%\Web\Wallpaper here, which should actually be C:\Windows\Web\Wallpaper in this case.
2. Choose an appropriate destination. I'm using my Desktop in my case.
3. The FastCopy program will throw an exception about not finding the file. It will actually go to the folder that contains the program.

SHIROUZU Hiroaki

unread,
Sep 25, 2020, 8:59:54 AM9/25/20
to FastCopy support forum
Shell(explorer/cmd.exe) interprets %...%, but ordinary applications do not.
If you want to use it, describe it in the file-selection dialog of Source/DestDir button.

2020年9月25日金曜日 16:22:49 UTC+9 chenyipin...@gmail.com:

eee222444 ____

unread,
Sep 26, 2020, 1:32:18 PM9/26/20
to FastCopy support forum
Please check that FastCopy does not recognize any environment variables in the Shell (cmd) also.


Version Info (principle, latest ver):
FastCopy (32 and 64-bit) versions from 3.11 to 3.92

OS/Environment:
Windows 8.1, x64

Error Message / Logs:
FindFirstFileEx(del)(The system cannot find the path specified.3) : C:\Users\%USERNAME%\Downloads\*.*

Error Details / Situations:
%USERNAME% varible should redirect to the user directory, C:\Users\Administrator\ in my case.

Specified Params : copy-mode / filters / other options
Native CMD.

Reproduction Steps:
1. Create file "files.txt" with the following content:
      "C:\Users\%USERNAME%\Downloads1\*.*"
2. Run command from CMD:
      fastcopy /cmd=delete /auto_close /srcfile="files.txt"
3. The FastCopy program will throw an exception about not finding the path.

SHIROUZU Hiroaki

unread,
Sep 27, 2020, 11:40:59 AM9/27/20
to FastCopy support forum
I think you misunderstood.

Shell/cmd.exe replace %..% in command line string.

The contents of the files.txt is not read/interpreted by shell/cmd.exe.
And Shell/cmd.exe pass through the string as "files.txt" to fastcopy.

Can you understand?


2020年9月27日日曜日 2:32:18 UTC+9 eee222444 ____:
Message has been deleted

eee222444 ____

unread,
Oct 4, 2020, 12:22:07 PM10/4/20
to FastCopy support forum

shir...@gmail.com


Thank you for your reply.
It would be great if FastCopy will recognize an environment variables.
It looks like first message was about the same thought.

Reply all
Reply to author
Forward
0 new messages