how to write a regedit key's value to move a f

2019-08-31 01:28发布

问题:

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