Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Beej126 authored Apr 12, 2019
1 parent 405b34d commit 4664999
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ Note3: i've subsequently changed this context menu to associate to all file type
## Command Line Examples
note: **initial command must have path** for shell > command to work
### put selected files onto clipboard
- this is a fun use of delimiter to create multiple echo statements that are then piped to "clip" device
- to script this in a registry "setup" batch file, we need to **double** escape the "&" and "|" characters...
- once to avoid the initial setup batch file from interpreting them directly
- and secondly to avoid the command line launched from SingleInstanceAccumulator from processing them
- so that they are finally present to be run directly from the final cmd.exe
`setup.cmd`
```batch
reg add "HKEY_CURRENT_USER\Software\Classes\*\shell\Path2Clip\command" /f /ve /t REG_EXPAND_SZ /d "\"^%%bin^%%\SingleInstanceAccumulator\" -w -d:\" ^^^& echo \" \"-c:cmd /c (echo $files) ^^^| clip\" \"%%1\""
```
### PowerShell & temp file
note: **-f** usage
```
Expand Down

4 comments on commit 4664999

@vicomannen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi!
Thanks for an awesome app (SingleInstanceAccumulator) =) could you please tell me how to escape backslash characters? I'm using "SIA_3" with icacls, when I need to change ownership of a file, I have to type my computername backslash my account. I'm currently stuck at it, I have no idea how to escape backslashes, have tried with backticks double backslashes etc to no avail. Hopefully you have a solution for it?

@Beej126
Copy link
Owner Author

@Beej126 Beej126 commented on 4664999 Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vicomannen - are you using the -v to see what comes through and trial and error? normally it's double backslashes and maybe you need to double those up twice to flow through so maybe try 4 instead of just 2 and see what you wind up with in -v output

@vicomannen
Copy link

@vicomannen vicomannen commented on 4664999 Dec 18, 2023 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vicomannen
Copy link

@vicomannen vicomannen commented on 4664999 Jun 22, 2024 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.