Search found 5913 matches

by davidc
Thu Dec 19, 2013 10:25 am
Forum: PowerShell GUIs
Topic: Using combobox selection for if,elseif statement
Replies: 3
Views: 3476

Re: Using combobox selection for if,elseif statement

We have a PowerShell GUIs forum in which you can post questions about creating GUIs, such as this. But the reason you are getting a different value is that you are assigning the SelectedIndex instead of evaluating it. In PowerShell you must use the equal comparison operator: IF ($combo_emaildomain.S...
by davidc
Wed Dec 18, 2013 3:45 pm
Forum: PowerShell Studio
Topic: Issue with Accented Characters in v3.1.27 and Windows 8.1
Replies: 1
Views: 1049

Re: Issue with Accented Characters in v3.1.27 and Windows 8.

Please zip and email the script to support@sapien.com, so that we can review it.

Is this a US machine?

It is possible that the file was saved as ASCII at one point and lost the original Unicode information.

David
by davidc
Mon Dec 16, 2013 10:11 am
Forum: PowerShell Studio
Topic: Reconstruction problems: (Sapien 3.1.16) vs (Sapien 3.1.27)
Replies: 2
Views: 1797

Re: Reconstruction problems: (Sapien 3.1.16) vs (Sapien 3.1.

I moved this to the correct forum. I'm not clear as to what is not working correctly, but if you want to pass parameters into a project script you must place a parameter block at the top of the startup.pfs file. The $CommandLine in the Main function is use for a packaged exe. #Define a Param block t...
by davidc
Fri Dec 13, 2013 9:45 am
Forum: PowerShell GUIs
Topic: Radio Button IF ELSE Statement
Replies: 7
Views: 5172

Re: Radio Button IF ELSE Statement

In PowerShell "-eq" is the compare operator where as the "=" is the assignment operator.

David
by davidc
Wed Dec 11, 2013 2:44 pm
Forum: PowerShell GUIs
Topic: Stop a script (gui) on condition
Replies: 4
Views: 2344

Re: Stop a script (gui) on condition

The following article may help point you to the right direction:

http://www.sapien.com/blog/2009/10/19/c ... y-happens/

David
by davidc
Wed Dec 11, 2013 2:17 pm
Forum: PowerShell Studio
Topic: Long time to load form when running it
Replies: 31
Views: 17959

Re: Long time to load form when running it

Can you clarify what constitutes not connected to the internet? For example: Is this on a machine without a network card? Is the network card / wireless disabled? Or a machine connected to a LAN that has no internet access? We have been unable to reproduce this on our end, therefore we want to test ...
by davidc
Wed Dec 11, 2013 10:35 am
Forum: PowerShell Studio
Topic: Powershell Console - Is it interactive
Replies: 2
Views: 1626

Re: Powershell Console - Is it interactive

The console is interactive, you can send command via the input line, or if you prefer type directly in the console by unchecking the "Enable Enhanced Console Input Line" in Options->Console. Note: That the console is a separate instance of the original powershell.exe and does not interact directly w...
by davidc
Mon Dec 09, 2013 10:39 am
Forum: PowerShell Studio
Topic: Use Job Tracker to run a wmi query on multiple computers
Replies: 1
Views: 1347

Re: Use Job Tracker to run a wmi query on multiple computers

The "Button - Start Job" shows you how to use the Job Tracker Control Set. Here is a sample of what you might do: foreach($computer in $computers) { Add-JobTracker -Name "$computer" ` -ArgumentList $computer` -JobScript { #-------------------------------------------------- #TODO: Set a script block ...
by davidc
Fri Dec 06, 2013 9:48 am
Forum: PowerShell GUIs
Topic: sapien studio 2012 gui issue
Replies: 4
Views: 1740

Re: sapien studio 2012 gui issue

You have a few options:

1. Dot Source the original script file.
2. Convert the script into a function and call the function from the event.
3. Create a project and add the original ps1 script to it and use the Call-FileName_ps1 method.

David
by davidc
Thu Dec 05, 2013 10:26 am
Forum: PowerShell Studio
Topic: Run Package (EXE) with parameter
Replies: 1
Views: 3884

Re: Run Package (EXE) with parameter

Please refer to the following blog article on how to use parameters with the packaged executable: http://www.sapien.com/blog/2012/10/25/revisiting-the-packager-and-command-line-arguments/ As for calling scripts, you can use the various methods available in PowerShell (i.e. Functions, dot sourcing). ...