header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
can someone explain 4 backticks stuff
Last Post 04 Jan 2010 03:47 AM by ivans. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ivansUser is Offline
New Member
New Member
Posts:3
Avatar

--
04 Jan 2010 03:47 AM
    I'm executing some msdeploy commands from powershell and when using command with spaces inside i have to use 4!! double qoutoes. Msdeploy command need single double quotes and i'm guessing that other double quotes are discarded in parsing process. Where can i get detailed description(algoritm, whitepaper) of what is happening at this 4 backtick stuff  - page 311 in first edition of Powershell in action:

    dir thumb````[*

    Explanation from the book: Single backtick fails because it is discarded in parsing process. It takes four backticks to cause square bracket to be treated as a regular character. I guess it's the same issue as with my 4 double quotes.

    Example:

    & "$msdeployDir\msdeploy.exe" -verb:sync "-source:contentpath=$workingDir\Run_script.ps1" "-dest:contentpath=$destTempDir\database\Run_script.ps1$destination" -postsync:runcommand=""""start powershell $destTempDir\database\run_script.ps1 $destTempDir\database $dbConnection""""

    I'm running this on powershell v2 (included in windows 7)
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer