Hi!
tl/dr:
Can someone please give me a simple Run command snippet that will send the short version of today's date (ex. 09/12/18) to the clipboard without opening any Command prompt windows or changing focus? I have spent several hours searching for answers and trying different things, to no avail.
The Run Command I was trying to use is:
echo %date:~4,6%%date:~12,2% | clip
Context / Details:
I have a macro keyboard (Razer Ornata Chroma) that allows me to create simple macros and bind them to keys.
The Macro software allows me to use keystrokes, text, mouse clicks, and Run Commands. For example I have a simple Run Command + text macro that opens a browser window, pastes a fogbugz case URL without a case ID, and leaves the cursor at the end of the URL so I can type in the case ID. Yay. I am not a coder, so I just use a simple run command: "firefox URL about:blank"
I'd like to create another basic macro that essentially inserts the date into whatever program/text field has focus, just to save me some typing time.
I successfully created one using a Run command that pipes the %date% variable (or just the output of DATE /T) into the clipboard. Then I try to use a Keystroke to perform Ctrl+V. Should be simple.
However I have 2 issues:
1. My macro opens the cmd prompt window. I don't want a command window popping up every time I use the macro, or I will have 100 by the end of the day.
2. The cmd window takes focus. So instead of pasting my clipboard contents into OneNote or FogBugz or whatever, I just end up with a "v" on the command line of a cmd window.
3. I don't actually know how to use MS-DOS commands, so I'm not sure how to run a command silently / with invisible window. Also, the echo command baffles me.
Thank you for your help!