question

daisy777-6768 avatar image
0 Votes"
daisy777-6768 asked saldana-msft edited

Robocopy formula help please??

Okay so for work, I have to copy the same folders (and subfolders-there's a lot) WITHOUT the files in them into a new folder for 2022.

I used this formula in command prompt for work last year and it worked:

robocopy "C:\Users\AdvertisingCoordinator\BoomSync\Media Buying\Clients" "C:\Users\AdvertisingCoordinator\BoomSync\Media Buying\Clients\new" /e /xf *

Now it's saying the source cannot be found? Can anyone help? What can I put into command prompt that will copy each folder and subfolder (without the files) from the clients folder into a new folder?

windows-hardware-code-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cooldadtx avatar image
0 Votes"
cooldadtx answered

If the source cannot be found then it sounds like your source path (the first argument) isn't a valid path anymore. Can you confirm that the source path is valid?

Also note that your source path is a subset of the destination path. Therefore you could run into a recursive issue as the source path is containing the subfolders that you're trying to copy to. Try changing the destination path to something else such as C:\Users\AdvertisingCoordinator\BoomSync\Media Buying\NewClients\new. If the copy succeeds correctly then you can move the new folder to the desired location as normal.

robocopy "C:\Users\AdvertisingCoordinator\BoomSync\Media Buying\Clients" "C:\Users\AdvertisingCoordinator\BoomSync\Media Buying\NewClients" /e /xf *
md "C:\Users\AdvertisingCoordinator\BoomSync\Media Buying\NewClients" "C:\Users\AdvertisingCoordinator\BoomSync\Media Buying\Clients\new"
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

daisy777-6768 avatar image
0 Votes"
daisy777-6768 answered

@cooldadtx Thank you so much for your response!! I tried that, unfortunately it still says "Cannot find the path specified" I can't understand what else I could do differently??

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

daisy777-6768 avatar image
0 Votes"
daisy777-6768 answered

IT WORKED!!! So for some reason I had to put "adver" instead of "advertisingcoordinator" and it's copying the files!!! What a relief THANK YOU

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.