how to write a regedit key's value to move a file without opening console

十年热恋 提交于 2019-12-24 21:35:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!