This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Posts: 38
- Last visit: Tue Apr 06, 2021 11:27 pm
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
I already tried variations of this:
Product, version and build: Powershell Studio 2016
32 or 64 bit version of product: 64
32 or 64 bit OS: 74
PowerShell Version: 4
- Posts: 5913
- Last visit: Mon Jul 08, 2019 8:55 am
- Been upvoted: 1 time
PowerShell Studio has some special variables for the date and the registered product user:
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/
SAPIEN Technologies, Inc.