Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Converting the FileSystemObject's MoveFile Method

Windows PowerShell

Definition: Move one or more files to a different location.


See Move. You can use the Move-Item cmdlet to move more than one file, simply use wildcard characters to specify the files you want. Here’s an example that moves all files with a .jpg extension from the temp folder to the old folder:

Move-Item C:\temp\*.jpg C:\old

See conversions of other FileSystemObject methods and properties.
Return to the VBScript to Windows PowerShell home page

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.