Re: Batch File not reading Varibles
WinSCP supports only basic syntax
Specifically, it is using
https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-expandenvironmentstringsw
You can store the result of
%NAME%
, not the advanced syntax you are using.
Specifically, it is using
ExpandEnvironmentStrings
WinAPI function:
https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-expandenvironmentstringsw
You can store the result of
%date:~-4,4%%date:~-7,2%%date:~-10,2%
to a temporary variable in your batch file and use that from the script.