views:

12

answers:

0

Hi

im using a .bat File via windows Shortcut to tag freshly created files vith a prefix containing the actual date. Id like to run this while saving any file in whatever application.

set var= %DATE%
set datu=%var:~7,4%%var:~4,2%%var:~1,2%_
echo %datu%|clip

now when I run the shortcut my cursor exits from the actual input field. I'll have to reselect it an hit "ctrl+v".

Is there a way to paste the prefix directly into the focused dialog input field while running the batch via shortcut? Something like hitting "ctrl+:" on a focused cell in excel.