问题
I want to write a regedit key value which moves a file from one location to some fixed location. Following is the value for it:
cmd.exe /k %1 D:\MyLocation
But what remains after moving file is an opened console. Please suggest a way to do this without having a console.
回答1:
cmd /K
keeps console open after execution while cmd /C
close it
来源:https://stackoverflow.com/questions/21455175/how-to-write-a-regedit-keys-value-to-move-a-file-without-opening-console