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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
&...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cmd.exe × 3018windows × 1317
command-line × 728
windows-10 × 470
batch-file × 433
batch × 404
powershell × 320
windows-7 × 274
environment-variables × 73
networking × 66
script × 62
bash × 57
windows-registry × 50
python × 48
path × 43
ffmpeg × 42
windows-explorer × 42
windows-8 × 40
administrator × 40
shell × 38
windows-8.1 × 37
windows-xp × 32
robocopy × 32
console × 31
ssh × 30