Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Command Prompt - Windows 11, 10, etc. ► ««« »»»

Move Files with Powershell and CMD (examples)!


The solution is quite easy to move with PowerShell and / or cmd.exe files, or folders, here with examples!




Moving files sometimes makes more sense at the command line than with Microsoft File Explorer or Quad Explorer , it makes perfect sense because of the wildcard (placeholder) file function. This is not only possible under Windows 11 / 10 / 8.1 / 7. No! It is also popular by administrators used feature, especially on Windows Server 2019,  2016, ... (Web Server). 



1.) ... Move the data with the command prompt (cmd.exe)
2.) ... Moving the data using PowerShell!
3.) ... What should I consider when move files by command line!
4.) ... Overview of the MOVE commands!
5.) ... Move and other file operations on MS Windows OS!




1.) Move the data with the command prompt (cmd.exe)

At the Windows command prompt, you can move files with the move command (folder and files). For example, if you want to move a file named "text_file.xls" to the "C: \Folder1" folder , type the following command:  


move test_file.xls C:\Folder1


Do not forget to press Enter. 
 
Here, we move the file from the current working directory to C:\Folder1.

However, if you want to move from a specific folder, you must specify the full folder path, which should also be noted if the destination or source directory is stored in the folder folder. Path include spaces, must be used "" quotes (quotation marks).  
 
Here is a simple example: 


move "D:\Test Folder\test_file.xls" C:\Folder1 


You can also move multiple files using wildcards. In the example below, the move command moves all files with the file extension *.xls to the "C:\folder 2" directory . 



move "D:\Test Folder\*.xls" "C:\Folder 2" 




If executed correctly, you will see how many files have been moved! 

2.) Moving the data using PowerShell!

Even with Powershell you can move files and folders! The MOVE command can also be used in the powershell console. However, this is not the Powershell home-made move command!


move "D:\Test Folder\*.xls" "C:\Folder 2" 


That would be the correct Powershell command but MOVE is much more elegant in this case 


D:\>Get-ChildItem "D:\From-Folder\*.xls" -Recurse | Move-Item -Destination "C:\Dest-Folder" 
 


3.) What should I consider when move files by command line!

Unlike the file explorer, actions can not be reversed, so you have to be clear about what you are moving. "Undo move"  make is not here!  
 
Otherwise, quite handy the move by command line under Microsoft's Windows.

4.) Overview of the MOVE commands!

ColorConsole [Version 2.6.1001 ]
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Neno>move /?
Moves files and renames files and directories.

To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination

To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2

[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.

The switch /Y may be present in the COPYCMD environment variable.
This may be overridden with /-Y on the command line. Default is
to prompt on overwrites unless MOVE command is being executed from
within a batch script.

C:\Users\Neno>


You can safely use this on the following operating systems: Windows 11, 10 Pro, Enterprise, Home, Windows 8.1, Windows 8, Windows-Server 2019, 2016, 2012, Windows 7 Basic, Professional, Starter, Ultimate and all commands for free!


5.) ... Move and other file operations on MS Windows OS!



Moving data, copying, ... and other file operations on all Microsoft Windows desktop and server operating systems is one of the tasks that you can easily do unlike other operating systems, unlike for example Google Chrome OS where you feel that there is no disk, drives, partitions. ... and there is no real file manager either!

 

Here are more tips on this important task:
►► Move my files, documents folders in Windows 10/11, how does it work?
►► Confirm copying or moving in File Explorer!
►► Copy files without directory under Windows 11, 10, 8.1, ...!
►► Move the desktop clock on the desktop
►► Show Message Box if move files to recycle bin on Windows!
►► is  it legal to make a copy of the MS Windows software!
►► How can I force move/copy when dragging the files?
►► Moving, copying, understanding differences and the thinking traps!





FAQ 30: Updated on: 26 August 2023 10:21 Windows
Windows-Console

Command Line to list / cancel print jobs / Example?


Under Windows 11, 10, . and MS Server OS, you can also quite easily list the print jobs via the command line abort / stop For this purpose, the WMIC
Windows-Console

Date / time change command prompt, with examples, how to?


The solution is quite simple to use the cmd.exe command line to change the date or time Changing the date or time is sometimes quicker via the command line
Windows-Console

CMD commands to control power settings under Windows, with examples?


There are commands to control the power settings under Windows, it makes sense if you want to change them by batch file on Windows 12, 11, 10, etc. OS Here
Windows-Console

Using PowerShell and CMD to delete complete directories, with examples?


You can use PowerShell and / or cmd.exe to delete complete directories in one go with subdirectories on Windows 12, 11, 10, Deleting of Directories
Windows-Console

Command line CMD background change color, but how, with example?


Also during the command input you can change the CMD background color by command and the text, here an example The color values ​​can be indicated by two
Windows-Console

Disable and enable SmartScreen via CMD BATCH command?


The solution is simple to disable and enable SmartScreen via CMD BATCH command and command prompt Contents: 1. Deactivating the Smart Screen when browsing
Windows-Console

How can I start the program at a certain time CMD, with examples?


In Windows you can start programs via AT at a certain time without additional software programs  Start the cmd.exe and use the command "AT" in the combination

»»

  My question is not there in the FAQ
Asked questions on this answer:
  1. Move Windows shell directories?
  2. Move Powershell files Windows 11, 10, ...?
  3. Move move directory contents?
  4. Move file cmd?
  5. Cmd command move folder?
  6. Move Move Windows files from directory?
  7. Powershell move all files that begin with d?
  8. Move Powershell files into certain folders?
  9. cmd command to move files?
  10. Pwershell files, copy folder?
  11. Copy file cmd command overwritten?
  12. Windows 11, 10, ... Move Powershell file?
  13. Move Windows command line file?
  14. Move cmd desktop folder Windows 11, 10, ...?
  15. Move files with command prompt?
  16. Move cmd in files?
  17. Move folder cmd in Windows 11, 10, ...?
  18. Move cmd file?
  19. Move files with cmd on Windows 11, 10, ...?
  20. Windows input prompt Move folder?
  21. Move Windows command line folder structure?
  22. Move file with cmd?
  23. Move a file with cmd?
  24. Move command permissions?
  25. Windows cmd move all files and directories?
  26. Create files in certain folders with cmd?
  27. Windows 11, 10, ... Move Windows files cmd?
  28. Moving directory dos?
Keywords: windows, 11, 10, server, eleven, console, move, files, with, powershell, examples, cmd, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + FontViewOK
  + MeinPlatz
  + DesktopOK
  + IsMyMemoryOK
  + StressTheGPU
  + Brightness.Manager.OK
  + ProcessKO
  + WinBin2Iso
  + ThisIsMyFile
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► Image from MS Explorer via keyboard shortcut as an image in the clipboard! ◄
► The Photo Resizer for all Microsoft Windows Desktop and Server OS! ◄
► MagicMouseTrails Magic Mouse tracks on the Windows 11, 10, ... Desktops! ◄
► Insert text snippets about clipboard via Windows Keyboard Shortcuts! ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....