Wow. Excellent. Many thanks for all your help.
I've incorporated it into my MSOnline scripts and it works like a charm.
Tbh I can't see what's different from what I was doing, but I'm not complaining.
Cheers again.
F.
Search found 13 matches
- Sun Oct 25, 2015 2:10 pm
- Forum: PowerShell
- Topic: Passing parameters to exe
- Replies: 15
- Views: 10455
- Sun Oct 25, 2015 12:51 pm
- Forum: PowerShell
- Topic: Passing parameters to exe
- Replies: 15
- Views: 10455
Re: Passing parameters to exe
Okay, I'm almost there and understanding it a little more. The last bit, however, is not giving me any output. Your previous post with: $myargs=Parse-Commandline $CommandLine #Convert the Arguments. Use – as the Argument Indicator $named=Convert-ArgumentsToHashtable $myargs ‘-‘ Well, I copied the co...
- Fri Oct 23, 2015 2:04 am
- Forum: PowerShell
- Topic: Passing parameters to exe
- Replies: 15
- Views: 10455
Re: Passing parameters to exe
Thanks for your help. Maybe I'm confused by the first part ending with: Results: $Parameter[0] = –Parameter and then continuing with: It can be taken even further by creating a function called Convert-ArgumentsToDictionary... This tells me the bit that follows is optional, but you seem to be suggest...
- Fri Oct 23, 2015 12:33 am
- Forum: PowerShell
- Topic: Passing parameters to exe
- Replies: 15
- Views: 10455
Re: Passing parameters to exe
https://www.sapien.com/blog/2010/02/09/primalforms-2009-the-packager-and-command-line-arguments/ Look at the packager commandline snippet. Do you mean this bit Alex..? Results: $Parameter[0] = –Parameter $Parameter[1] = Value1 $Parameter is never mentioned in the script above it, and calling these ...
- Thu Oct 22, 2015 2:50 pm
- Forum: PowerShell
- Topic: Passing parameters to exe
- Replies: 15
- Views: 10455
Re: Passing parameters to exe
That outputs exactly the same as
Write-Host $commandline
...except in green.
Write-Host $commandline
...except in green.
- Thu Oct 22, 2015 1:10 pm
- Forum: PowerShell
- Topic: Passing parameters to exe
- Replies: 15
- Views: 10455
Passing parameters to exe
I've read the article at https://www.sapien.com/blog/2012/10/25/revisiting-the-packager-and-command-line-arguments/ and while I'm far from being a PS expert I reckoned it wasn't that hard to set up a test script to Write-Host each of 2 params I passed to it. So I coped the script, added the lines: W...
- Tue Oct 20, 2015 4:30 am
- Forum: PowerShell
- Topic: exe compiler secure?
- Replies: 2
- Views: 2638
Re: exe compiler secure?
Thanks Alex, very useful.
Can I suggest the link in the blog is updated? It redirects to the front page instead of the downloads.
F.
Can I suggest the link in the blog is updated? It redirects to the front page instead of the downloads.
F.
- Tue Oct 20, 2015 3:41 am
- Forum: PowerShell
- Topic: exe compiler secure?
- Replies: 2
- Views: 2638
exe compiler secure?
Hey folks, I need to distribute a PS1 script while preventing people getting to the password inside. Basically it's for assigning licences to Office 365 users, and I don't want these guys having the creds to 365. PowerGUI has a 'compiler' which is anything but. PS2EXE kind of compiles it, but not re...
- Mon Jun 13, 2011 4:33 am
- Forum: VBScript
- Topic: Outlook form question
- Replies: 8
- Views: 5520
Outlook form question
What I posted is ALL of the code in the form. I didn't make my 1st para clear; what I meant is that there seems to be no "on_Open" event or similar; that would make it easier for someone like me!
fergusfog2011-06-13 11:34:09
fergusfog2011-06-13 11:34:09
- Mon Jun 13, 2011 4:21 am
- Forum: VBScript
- Topic: Outlook form question
- Replies: 8
- Views: 5520
Outlook form question
Cheers jvierra, The code you posted is a bit confusing for me, but I understand about the event. So I guess you're saying there is no way to get the code to know if you are opening or creating the item? That seems pretty fundamental! Otherwise, what event could I use without re-writing all the code ...