1 vote

CMD/Powershell looking for "curl" executable in the wrong location despite PATH

As pointed out in the comments, it is indeed running curl in the correct location, but the executable is a Chocolatey shim which tries to defer to another one. For some reason I had manually replaced ...
Syst3ms's user avatar
  • 11
1 vote
Accepted

How do I show parts of a string?

How do I echo CDEF? You are using the correct expression, you just need to change it a little: echo !keys:~2,5! Should do the trick. Start at 2 and end at 5. Further Reading An A-Z Index of the ...
DavidPostill's user avatar
  • 157k
1 vote
Accepted

How do I delete files with "- copy" in the name using wildcards?

What's happening at the moment is that your *- copy.* is being parsed as two space-separated arguments: *- and copy.*. Once you see this, it's straightforward to recognise that second of these will ...
Chris Davies's user avatar
  • 3,799
1 vote
Accepted

cmd.exe ignoring /t color when using /c instead of /k

I haven't seen any mention in Microsoft's documentation that /t is not supported by /c After looking at the source code, it seems that this combination is deliberately not supported, even if that's ...
u1686_grawity's user avatar
1 vote

Add confirmation after executing ROBOCOPY command

What you want is not directly possible. What you CAN do is write a script that takes your input, presents the confirmation prompt, and then runs robocopy to complete the actions. PowerShell can do ...
music2myear's user avatar
  • 41.7k
1 vote
Accepted

Windows pipe curl output to cmd

I had a try and found it errors too. i looked up a solution, its a workaround but try this curl -sSL https://pastebin.com/raw/CHCq9VQt -o temp_script.bat && temp_script.bat && del ...
ace90210's user avatar
1 vote

Uninstall SourceTree using cmd or powershell

I did little research and was able to find a cmd way to uninstall it. To uninstall it using cmd I was looking on the Process Explorer for cmd line of the msiexec.exe which gave me the command below &...
Kristi Begaj's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible