Search found 10 matches
- Tue Feb 15, 2011 4:53 pm
- Forum: Technical / Scripting
- Topic: Execute Powershell Script With Variables
- Replies: 7
- Views: 11399
I got it to work by putting single quote inside of the double quotes like "'Wired Solaris'". BTW, The powershell command runs, just that it does not utilize the double quotes. It seems to ignore them being passed so it sees each word that has spaces as a new field, thus putting the data in the wrong...
- Fri Feb 11, 2011 7:50 pm
- Forum: Technical / Scripting
- Topic: Execute Powershell Script With Variables
- Replies: 7
- Views: 11399
- Fri Feb 11, 2011 7:49 pm
- Forum: Technical / Scripting
- Topic: Execute Powershell Script With Variables
- Replies: 7
- Views: 11399
Not sure what I am missing. Here is the exact run line that I am passing. Run>powershell.exe –noexit C:\Scripts\UserCreate\createuser.ps1 ""%dlgFirstName%"" ""%dlgLastName%"" ""%dlgAddress%"" ""%dlgCompany%"" ""%dlgCity%"" ""%dlgST%"" ""%dlgZIP%"" ""%dlgDept%"" ""%dlgTEL%"" Not passing everything ...
- Tue Feb 08, 2011 1:54 pm
- Forum: Technical / Scripting
- Topic: Execute Powershell Script With Variables
- Replies: 7
- Views: 11399
I tried that and it still excludes the quotes when passing to Run for some reason. Hi wiredsolaris, Can you not set the variables to strings that include the leading and trailing double quotes... like this? Let>dlgCompany="The Company" MessageModal>dlgCompany RunProgram>powershell.exe C:\Scripts\Use...
- Wed Feb 02, 2011 7:44 pm
- Forum: Technical / Scripting
- Topic: Execute Powershell Script With Variables
- Replies: 7
- Views: 11399
Execute Powershell Script With Variables
I am creating a mini app to automate user account and mailbox creation. I have it calling powershell using RunProgram. I am passing variables as parameters to powershell, but some of them have spaces and I need to have MS pass double quotes with the parameters. Here is a snippit: MessageModal>%dlgFi...
- Thu Oct 14, 2010 5:23 pm
- Forum: General Discussion
- Topic: Search and Replace
- Replies: 4
- Views: 7651
Yeh,
Figured that out finally as well after messing with the string.
Great help as always man.
Finally had work purchase MS. Gonna save me at least 3 hours worth of manual work a night. Schweett product.
Figured that out finally as well after messing with the string.
Great help as always man.
Finally had work purchase MS. Gonna save me at least 3 hours worth of manual work a night. Schweett product.
mtettmar wrote:Ah, it's doing math on OE-7. Instead set the var with:
Let>search_string={"0E-7"}
- Thu Oct 14, 2010 12:06 pm
- Forum: General Discussion
- Topic: Search and Replace
- Replies: 4
- Views: 7651
Awesome and pretty close. It does locate every instance of 0E-7, but it only replaces the -7 and not the entire string 0E-7. However, if I do not use a variable in stringreplace it works. I.E. Instead of (this only replaces the -7 and not 0E-7): StringReplace>file_text,search_string,replacement_stri...
- Wed Oct 13, 2010 12:35 pm
- Forum: General Discussion
- Topic: Search and Replace
- Replies: 4
- Views: 7651
Search and Replace
Good day, Needing some assistance with a search and replace issue. Let's say I have a folder with 62 files in it, tab delimited but with a txt extention. I have to currently use Windows search to located the ones that have a value of 0E-7 in them. No problem there. I then have to open WordPad (Notep...
- Fri Oct 01, 2010 3:07 pm
- Forum: Technical / Scripting
- Topic: Variable Concatenation Issue
- Replies: 2
- Views: 3619
- Fri Oct 01, 2010 12:11 pm
- Forum: Technical / Scripting
- Topic: Variable Concatenation Issue
- Replies: 2
- Views: 3619
Variable Concatenation Issue
Currently testing out MS. I am seeing an issue where when I use at least 3 Let> commands, the third will not concatenante correctly. For Example. I try the following simple script and run through debugger: Day>dd Month>mm Year>yyyy sub>dd,1 Let>strFolder = C:\Test\ Let>strDate = %yyyy%%mm%%dd% Let>s...