使用cmd移动文件?
Moving file using cmd?
我有一个从 Google 下载的文件(它在下载文件夹中)
我想将它移动到 auto运行 文件夹(计算机打开时文件 运行 所在的文件夹)。
我需要使用 cmd 命令移动文件(原因是它将使用 USB 橡皮鸭来完成。
如果有任何帮助,我正在使用 windows 10 64 位。
文件所在路径
C:\Users\%USERPROFILE%\Downloads\Test.exe
我要移动到的路径是
C:\Users\%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
之所以 %USERPROFILE%
是因为它应该可以在所有计算机上运行。
要移动文件,请使用 mv,但如果不使用 admin,则无法正常工作,如何破解,请尝试 windows 的超级用户工具!
要移动文件,请使用 move
命令。
move "%USERPROFILE%\Downloads\Test.exe" "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
我在源和目标两边加上了引号,以防你是出于某种原因在用户名中有空格的人之一(而且目标无论如何都需要它们来填充 "Start Menu" 中的空格)。
来自move /?
的输出:
Moves files and renames files and directories.
To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
[drive:][path]filename1 Specifies the location and name of the file
or files you want to move.
destination Specifies the new location of the file. Destination
can consist of a drive letter and colon, a
directory name, or a combination. If you are moving
only one file, you can also include a filename if
you want to rename the file when you move it.
[drive:][path]dirname1 Specifies the directory you want to rename.
dirname2 Specifies the new name of the directory.
/Y Suppresses prompting to confirm you want to
overwrite an existing destination file.
/-Y Causes prompting to confirm you want to overwrite
an existing destination file.
我有一个从 Google 下载的文件(它在下载文件夹中) 我想将它移动到 auto运行 文件夹(计算机打开时文件 运行 所在的文件夹)。
我需要使用 cmd 命令移动文件(原因是它将使用 USB 橡皮鸭来完成。 如果有任何帮助,我正在使用 windows 10 64 位。
文件所在路径
C:\Users\%USERPROFILE%\Downloads\Test.exe
我要移动到的路径是
C:\Users\%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
之所以 %USERPROFILE%
是因为它应该可以在所有计算机上运行。
要移动文件,请使用 mv,但如果不使用 admin,则无法正常工作,如何破解,请尝试 windows 的超级用户工具!
要移动文件,请使用 move
命令。
move "%USERPROFILE%\Downloads\Test.exe" "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
我在源和目标两边加上了引号,以防你是出于某种原因在用户名中有空格的人之一(而且目标无论如何都需要它们来填充 "Start Menu" 中的空格)。
来自move /?
的输出:
Moves files and renames files and directories.
To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
[drive:][path]filename1 Specifies the location and name of the file
or files you want to move.
destination Specifies the new location of the file. Destination
can consist of a drive letter and colon, a
directory name, or a combination. If you are moving
only one file, you can also include a filename if
you want to rename the file when you move it.
[drive:][path]dirname1 Specifies the directory you want to rename.
dirname2 Specifies the new name of the directory.
/Y Suppresses prompting to confirm you want to
overwrite an existing destination file.
/-Y Causes prompting to confirm you want to overwrite
an existing destination file.