I noticed, that method Environment.ExpandEnvironmentVariables() does not returns values for some system variables such as %date%, %time%, %homeshare% etc... Why?
%HOMESHARE% may simply be undefined (it's not defined in all situations). %DATE% and %TIME% are dynamic variables that AFAIK are not available outside of CMD (same goes for e.g. %CD% and %ERRORLEVEL%).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With