Page 1 of 1

Snippet Editor Evaluate function or data

Posted: Tue Jul 05, 2016 12:53 am
by CermakPOI
Hi,
I want to create a snippet which inserts the current date and Username in string format - how can i do this with the Powershell Studio snippet editor?

It should look like this

Code: Select all

    1.0.0 01.07.2016  CER Description
<tab>1.0.0<tab>CurrentDate<tab>MyUserName<tab>Description
I already tried variations of this: Product, version and build: Powershell Studio 2016
32 or 64 bit version of product: 64
Operating system:Win7
32 or 64 bit OS: 74
PowerShell Version: 4

Re: Snippet Editor Evaluate function or data

Posted: Tue Jul 05, 2016 10:05 am
by davidc
PowerShell Studio has some special variables for the date and the registered product user:

%DATE%
%USERNAME%
%YEAR%
%TIME%

If you want to use the computer user's name or some other dynamic information, you are probably better off using the Custom PrimalSense feature instead:

https://www.sapien.com/blog/2016/02/29/ ... ew-part-1/