Custom Context Menu option for duplicating selected file not working as expected
问题 I am trying to create a custom Context Menu option for duplicating the selected file and appending date and time string to the copied file's name. Below is the command I have set in registry, in the HKCU > Softwares > Classes > * > Shell > Duplicate This File > Command: cmd /s /d /c @echo off & setlocal EnableExtensions EnableDelayedExpansion & set TIME=%TIME: =0% & set DateTimeFn=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%_!TIME:~0,2!-!TIME:~3,2!-!TIME:~6,2! & copy /y %1 %1_!DateTimeFn! & pause >