Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


MattMcNabb
2017-02-17T12:39:12Z
I'd like for the VisualCron PowerShell host to support the same automatic variables as the native PowerShell host. When moving PowerShell scripts from the Windows Task Scheduler, the lack of some of these variables has caused substantial refactoring. For instance, if a script relies on it's local directory to gather data or run other scripts, I'd generally use the PowerShell $PSScriptRoot automatic variable. However, this is not available when I run the scripts in VisualCron.

More on automatic variables can be found here:
https://msdn.microsoft.c...bout_automatic_variables 
Sponsor
Forum information
Support
2017-02-17T12:58:02Z
This will never work, as we use PowerShell host - it has alternate variables. The alternative is to use Powershell.exe from Execute Task where you get those other functions.

What we could do as we suggest to set working directory.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top