Answered by:
Move Files and Delete while Loging

Question
-
I am trying to find a script that will move files based on a csv or txt file that has the full ath name to a new drive while mainting the folder path and then deleting the source file and log the actions. i've tried robocopy and move-item
Stonecold31666
Friday, January 26, 2018 12:26 PM
Answers
-
I would suggest learning PowerShell as this can be done quite easily after a bit of training. You could import the csv and then use a foreach loop to run through each entry, then write the operation to a file and then perform the operation.
We DON'T write scripts here, you might be best going to the script request forum. We cant help you much without any of the code that you've tried.
- Edited by I.T Delinquent Friday, January 26, 2018 12:34 PM
- Marked as answer by stonecold31666 Tuesday, January 30, 2018 12:40 PM
Friday, January 26, 2018 12:33 PM -
Please red the following to set you expectiations for a technical forum.
This Forum is for Scripting Question Rather than script requests
\_(ツ)_/
- Marked as answer by stonecold31666 Tuesday, January 30, 2018 12:40 PM
Friday, January 26, 2018 5:57 PM
All replies
-
I would suggest learning PowerShell as this can be done quite easily after a bit of training. You could import the csv and then use a foreach loop to run through each entry, then write the operation to a file and then perform the operation.
We DON'T write scripts here, you might be best going to the script request forum. We cant help you much without any of the code that you've tried.
- Edited by I.T Delinquent Friday, January 26, 2018 12:34 PM
- Marked as answer by stonecold31666 Tuesday, January 30, 2018 12:40 PM
Friday, January 26, 2018 12:33 PM -
Please red the following to set you expectiations for a technical forum.
This Forum is for Scripting Question Rather than script requests
\_(ツ)_/
- Marked as answer by stonecold31666 Tuesday, January 30, 2018 12:40 PM
Friday, January 26, 2018 5:57 PM -
Hi,
What does your script look like? Are there any errors?
If possible, please provide more details about the question so that we can go further.
Best Regards,
AlbertPlease remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.comMonday, January 29, 2018 8:25 AM