command syntax

  1. T

    Windows 10 How to open a file with a specific program from cmd

    Hello, I am trying to open a file [FILE] with a program [PROGRAM]. I have a shortcut of those two on my desktop. When i drag and drop [FILE] on top of [PROGRAM], it works as expected, meaning that [FILE] gets openend correctly by using [PROGRAM] to open it (Similarly to how you would drop a...
  2. A

    Windows 7 basic scripting, usage piping, output redirections and variable in one example.

    Hi, I mostly use another OS, and need to rewrite following script into one which works in windows. OK, here's the command: curl -s -x 127.0.0.1:8888 -b ./cookies.txt -X GET Link Removed 2>&1 | tr -d '[]' | sed "s/,/\n/g" | head -n 1 | sed "s/.\(.*\)./\1/" here's what it does: loads content of...