Skip to content

Commit

Permalink
adding powershell escaping note
Browse files Browse the repository at this point in the history
  • Loading branch information
dgosbell committed Aug 1, 2024
1 parent fa7cadb commit 149525f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/features/command-line/powershell-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ When you combine `dscmd.exe` with powershell you can do some really powerful thi
# Example 1
The following example loops through an array of characters and export rows where the 'Product'[Color] value starts with the specified letter. This shows how you can insert a variable from Powershell into your query and filename dynamically.

:::tip
Note that double quote characters `"` inside 'here strings' `@"..."@` need to be double escaping using a backslash and a backtick eg `` \`" ``
:::

```
$cmd = "C:\Users\dgosbell\Downloads\DaxStudio_3_1_0_portable\dscmd.exe"
$server = "localhost:50909"
Expand Down

0 comments on commit 149525f

Please sign in to comment.