Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
General PowerShell
can someone explain 4 backticks stuff
Last Post 04 Jan 2010 03:47 AM by
ivans
. 0 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
ivans
New Member
Posts:3
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.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
General PowerShell
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2