Good morning:
I want to execute a powershell code in "Microsoft DOS" and the result of this is to put it in a variable and then use it in another command, which I could only run in DOS, maybe it could be executed by powershell ...
Specifically with the powershell command:
([datetime] "01/01/2017" - [datetime] :: Now)
This gives me back the difference of the current day with respect to the one I put.
Days: -345 Hours: -13 Minutes: -40 Seconds: -46 Milliseconds: -709 Ticks: -298572467097274 TotalDays: -345,569985066289 TotalHours: -8293,67964159094 TotalMinutes: -497620,778495457 TotalSeconds: -29857246,7097274 TotalMilliseconds: -29857246709 , 7274
I want to stay with the milliseconds without decimals and then pass it with a variable by DOS to another command. Also if you can calculate the milliseconds in DOS between two dates, it would be worth ... or do everything in powershell ...
Does anyone think of where I can start?
Greetings