![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | String formating Hi all, I'm facing some problems with path containing space, the invoke-expression doens't handle this very well. How to you process such pathes ? Another string problem come from I need to declare some strings with double quotes inside, how do I build these strings ? Many thanks in advance for the help. |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: String formating > I'm facing some problems with path containing space, the invoke-expression > doens't handle this very well. How to you process such pathes ? Use single quotes... if you can provide an example that would help > Another string problem come from I need to declare some strings with > double > quotes inside, how do I build these strings ? You can escape the " using ` example PS > $msg = "I want to say `"hello`"" PS > $msg I want to say "hello" -- Brandon Shell --------------- Stop by my blog some time ![]() http://mybsinfo.blogspot.com/ ---------------------------------- "Romu" <Romu@discussions.microsoft.com> wrote in message news:8016B4FD-031B-4FC5-92B6-7FC2AC9F1E00@microsoft.com... > Hi all, > I'm facing some problems with path containing space, the invoke-expression > doens't handle this very well. How to you process such pathes ? > > Another string problem come from I need to declare some strings with > double > quotes inside, how do I build these strings ? > > Many thanks in advance for the help. |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: String formating type into PS "<a href=""http://scriptolog.blogspot.com"" target=""_blank"">Script Fanatics blog</a>" and it will render as: <a href="http://scriptolog.blogspot.com" target="_blank">Script Fanatics blog</a> basically, add extra quote for each desired one and wrap the whole string with quotes -- $hay http://scriptolog.blogspot.com "Brandon Shell" <tshell.mask@gmail.com> wrote in message news:u6Z648lOHHA.2232@TK2MSFTNGP02.phx.gbl... >> I'm facing some problems with path containing space, the >> invoke-expression >> doens't handle this very well. How to you process such pathes ? > Use single quotes... if you can provide an example that would help > >> Another string problem come from I need to declare some strings with >> double >> quotes inside, how do I build these strings ? > > You can escape the " using ` > example > PS > $msg = "I want to say `"hello`"" > PS > $msg > I want to say "hello" > -- > > Brandon Shell > --------------- > Stop by my blog some time ![]() > http://mybsinfo.blogspot.com/ > ---------------------------------- > > "Romu" <Romu@discussions.microsoft.com> wrote in message > news:8016B4FD-031B-4FC5-92B6-7FC2AC9F1E00@microsoft.com... >> Hi all, >> I'm facing some problems with path containing space, the >> invoke-expression >> doens't handle this very well. How to you process such pathes ? >> >> Another string problem come from I need to declare some strings with >> double >> quotes inside, how do I build these strings ? >> >> Many thanks in advance for the help. > |
My System Specs![]() |
| | #4 (permalink) |
| Guest | Re: String formating Many to you guys. Romu "$hay" wrote: > type into PS > > "<a href=""http://scriptolog.blogspot.com"" target=""_blank"">Script > Fanatics blog</a>" > > and it will render as: > > <a href="http://scriptolog.blogspot.com" target="_blank">Script Fanatics > blog</a> > > basically, add extra quote for each desired one and wrap the whole string > with quotes > > -- > $hay > http://scriptolog.blogspot.com > "Brandon Shell" <tshell.mask@gmail.com> wrote in message > news:u6Z648lOHHA.2232@TK2MSFTNGP02.phx.gbl... > >> I'm facing some problems with path containing space, the > >> invoke-expression > >> doens't handle this very well. How to you process such pathes ? > > Use single quotes... if you can provide an example that would help > > > >> Another string problem come from I need to declare some strings with > >> double > >> quotes inside, how do I build these strings ? > > > > You can escape the " using ` > > example > > PS > $msg = "I want to say `"hello`"" > > PS > $msg > > I want to say "hello" > > -- > > > > Brandon Shell > > --------------- > > Stop by my blog some time ![]() > > http://mybsinfo.blogspot.com/ > > ---------------------------------- > > > > "Romu" <Romu@discussions.microsoft.com> wrote in message > > news:8016B4FD-031B-4FC5-92B6-7FC2AC9F1E00@microsoft.com... > >> Hi all, > >> I'm facing some problems with path containing space, the > >> invoke-expression > >> doens't handle this very well. How to you process such pathes ? > >> > >> Another string problem come from I need to declare some strings with > >> double > >> quotes inside, how do I build these strings ? > >> > >> Many thanks in advance for the help. > > > > > |
My System Specs![]() |
| | #5 (permalink) |
| Guest | Re: String formating Also you can wrap quotes into '' block: '<a href="http://scriptolog.blogspot.com" target="_blank">Script Fanatics blog</a>' "$hay" <no@addre.ss> wrote in message news:eV5ozXnOHHA.1252@TK2MSFTNGP02.phx.gbl... > type into PS > > "<a href=""http://scriptolog.blogspot.com"" target=""_blank"">Script > Fanatics blog</a>" > > and it will render as: > > <a href="http://scriptolog.blogspot.com" target="_blank">Script Fanatics > blog</a> > > basically, add extra quote for each desired one and wrap the whole string > with quotes > > -- > $hay > http://scriptolog.blogspot.com > "Brandon Shell" <tshell.mask@gmail.com> wrote in message > news:u6Z648lOHHA.2232@TK2MSFTNGP02.phx.gbl... >>> I'm facing some problems with path containing space, the >>> invoke-expression >>> doens't handle this very well. How to you process such pathes ? >> Use single quotes... if you can provide an example that would help >> >>> Another string problem come from I need to declare some strings with >>> double >>> quotes inside, how do I build these strings ? >> >> You can escape the " using ` >> example >> PS > $msg = "I want to say `"hello`"" >> PS > $msg >> I want to say "hello" >> -- >> >> Brandon Shell >> --------------- >> Stop by my blog some time ![]() >> http://mybsinfo.blogspot.com/ >> ---------------------------------- >> >> "Romu" <Romu@discussions.microsoft.com> wrote in message >> news:8016B4FD-031B-4FC5-92B6-7FC2AC9F1E00@microsoft.com... >>> Hi all, >>> I'm facing some problems with path containing space, the >>> invoke-expression >>> doens't handle this very well. How to you process such pathes ? >>> >>> Another string problem come from I need to declare some strings with >>> double >>> quotes inside, how do I build these strings ? >>> >>> Many thanks in advance for the help. >> > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find a string within a variable string | Edward.A.Gonzalez | PowerShell | 4 | 08-15-2008 08:13 AM |
| problems with $var | select-string -pattern $string -q | Ben Christian | PowerShell | 3 | 02-08-2008 12:41 PM |
| How export-csv deals with string versus string[] | Marco Shaw | PowerShell | 2 | 07-13-2007 12:18 PM |
| String PRODUCT_NAME was not found in string table | Extracampine | Vista General | 3 | 02-12-2007 06:15 AM |