You are not logged in.
Pages: 1
Just noticed that if you call get-date with -uforrmat via bat file and command prompt differs a little bit - calling from bat file requires a double percent sign:
e.g.:
this will work from command prompt:
powershell get-Date -uformat %D
but to work in batch file it needs to be:
powershell get-Date -uformat %%D
(which I suppose is logical if the batch syntax is taken into account)
Offline
Good point, I've added a note on the PS Powershell.exe page about this.
http://ss64.com/ps/powershell.html
Offline
Pages: 1