Jump to content
Ketarin forum

Powershell Variables

Recommended Posts

I've tried dumping $app and $globalvars in a variety  of ways to find t he correct variable names to migrate command scripts to  powershell  but am not  having any luck. Could someone provide  some assistance on this and perhaps the app  could be updated with a cheat sheet/drop down to help insert the variables for Ketarin. I have a lot of usage  of {startupath} etc and once I know how to map correctly I want to migrate these  over to using Powershell 5


I read through the powershell post but wasn't able to make progress with it. thanks!

Link to post
Share on other sites
$WShell = New-Object -ComObject WScript.Shell
$ShortCut = $WShell.CreateShortcut("$env:AppData\Microsoft\Internet Explorer\Quick Launch\$($App.Name).lnk")
$Shortcut.TargetPath = "$env:SystemDrive\$($App.Name)\$($App.Name).exe"
$Shortcut.WorkingDirectory = "$env:SystemDrive\$($App.Name)"
$Shortcut.IconLocation = "imageres.dll,-65"

That's an example from to the wiki. To access the variables use $App.Variables.{"myvariable"}.TextualContent for Text variables and $App.Variables.{"myvariable"}.CachedContent

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.