All,
Is it possible to assign a global variable using powershell instead of the normal windows command line interpreter?
Example for a global variable to be set for command line for the date you need to use the following:
sendevent -E SET_GLOBAL -G "Today=%date:~4,2%-%date:~7,2%-%date:~10,4%
I'm wondering if it is possible to do a similar item with powershell to come up with a custom format date without all the command line items
E.g. sendevent -E SET_GLOBAL -G "Today" = powershell.exe Get-Date -f 'yyyyMMdd'
I realize the above syntax is incorrect, but demonstrating an example. Basically using PowerShell's functionality to set global variables for dates and even other items.
Thanks in advance.
Chris Kent
Dart Container Corporation