Robocopy help

  • Thread starter Thread starter Cyborg
  • Start date Start date
C

Cyborg

Guest
Hi,

I'm using robocopy.exe to move old files to another server, I have started
copying files that are create from 31/12/2000 and before. Now all the files
do get moved across, but it will also create the entire orginal folder
structure, so I get folders with nothing in them because no file meet that
age, so why does it create the fodlers?


eg robocopy.exe G:\marketing F:\Archive\Marketing\2000 /E /copyall /move
/minage:20001231
 
Re: Robocopy help

Hello cyborg,

You are using the /E:

/E :: copy subdirectories, including Empty ones

choose:

/S :: copy Subdirectories, but not empty ones

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

> Hi,
>
> I'm using robocopy.exe to move old files to another server, I have
> started copying files that are create from 31/12/2000 and before. Now
> all the files do get moved across, but it will also create the entire
> orginal folder structure, so I get folders with nothing in them
> because no file meet that age, so why does it create the fodlers?
>
> eg robocopy.exe G:\marketing F:\Archive\Marketing\2000 /E /copyall
> /move /minage:20001231
>
 
Re: Robocopy help

Robocopy /? will tell you the commands.
/E = copy subfolders including empty subfolders.
/S = copy subfolders (but not empty)
Anthony,
http://www.airdesk.com



"Cyborg" <apollo13@btinternet.com> wrote in message
news:EC2813BB-AA58-49CC-A0A5-A8DDA30B4804@microsoft.com...
> Hi,
>
> I'm using robocopy.exe to move old files to another server, I have started
> copying files that are create from 31/12/2000 and before. Now all the
> files do get moved across, but it will also create the entire orginal
> folder structure, so I get folders with nothing in them because no file
> meet that age, so why does it create the fodlers?
>
>
> eg robocopy.exe G:\marketing F:\Archive\Marketing\2000 /E /copyall /move
> /minage:20001231
 
Re: Robocopy help

Tried that do I need to keep the /copyall as it still seemed to copy empty
folders


"Anthony [MVP]" <anthony@no-reply.com> wrote in message
news:OOfSRSu8IHA.2416@TK2MSFTNGP02.phx.gbl...
> Robocopy /? will tell you the commands.
> /E = copy subfolders including empty subfolders.
> /S = copy subfolders (but not empty)
> Anthony,
> http://www.airdesk.com
>
>
>
> "Cyborg" <apollo13@btinternet.com> wrote in message
> news:EC2813BB-AA58-49CC-A0A5-A8DDA30B4804@microsoft.com...
>> Hi,
>>
>> I'm using robocopy.exe to move old files to another server, I have
>> started copying files that are create from 31/12/2000 and before. Now
>> all the files do get moved across, but it will also create the entire
>> orginal folder structure, so I get folders with nothing in them because
>> no file meet that age, so why does it create the fodlers?
>>
>>
>> eg robocopy.exe G:\marketing F:\Archive\Marketing\2000 /E /copyall /move
>> /minage:20001231

>
>
 
Re: Robocopy help

Perhaps the folders aren't empty . . .
Try to remove one of these "empty" folders from
the Command Prompt, using this command:
rd "Name of empty folder"
If it is empty then it will be deleted. If it containts
hidden files or subfolders then it won't.


"Cyborg" <apollo13@btinternet.com> wrote in message
news:3666BE61-A559-4377-99AA-36CF7E29E651@microsoft.com...
> Tried that do I need to keep the /copyall as it still seemed to copy empty
> folders
>
>
> "Anthony [MVP]" <anthony@no-reply.com> wrote in message
> news:OOfSRSu8IHA.2416@TK2MSFTNGP02.phx.gbl...
>> Robocopy /? will tell you the commands.
>> /E = copy subfolders including empty subfolders.
>> /S = copy subfolders (but not empty)
>> Anthony,
>> http://www.airdesk.com
>>
>>
>>
>> "Cyborg" <apollo13@btinternet.com> wrote in message
>> news:EC2813BB-AA58-49CC-A0A5-A8DDA30B4804@microsoft.com...
>>> Hi,
>>>
>>> I'm using robocopy.exe to move old files to another server, I have
>>> started copying files that are create from 31/12/2000 and before. Now
>>> all the files do get moved across, but it will also create the entire
>>> orginal folder structure, so I get folders with nothing in them because
>>> no file meet that age, so why does it create the fodlers?
>>>
>>>
>>> eg robocopy.exe G:\marketing F:\Archive\Marketing\2000 /E /copyall /move
>>> /minage:20001231

>>
>>

>
 
Re: Robocopy help

The /copy parameter is what file properties to copy. You can see the choices
by running robocopy /?. This does not affect what files or folders are
copied, only what properties of those files and folders selected,
Anthony,
http://www.airdesk.com




"Cyborg" <apollo13@btinternet.com> wrote in message
news:3666BE61-A559-4377-99AA-36CF7E29E651@microsoft.com...
> Tried that do I need to keep the /copyall as it still seemed to copy empty
> folders
>
>
> "Anthony [MVP]" <anthony@no-reply.com> wrote in message
> news:OOfSRSu8IHA.2416@TK2MSFTNGP02.phx.gbl...
>> Robocopy /? will tell you the commands.
>> /E = copy subfolders including empty subfolders.
>> /S = copy subfolders (but not empty)
>> Anthony,
>> http://www.airdesk.com
>>
>>
>>
>> "Cyborg" <apollo13@btinternet.com> wrote in message
>> news:EC2813BB-AA58-49CC-A0A5-A8DDA30B4804@microsoft.com...
>>> Hi,
>>>
>>> I'm using robocopy.exe to move old files to another server, I have
>>> started copying files that are create from 31/12/2000 and before. Now
>>> all the files do get moved across, but it will also create the entire
>>> orginal folder structure, so I get folders with nothing in them because
>>> no file meet that age, so why does it create the fodlers?
>>>
>>>
>>> eg robocopy.exe G:\marketing F:\Archive\Marketing\2000 /E /copyall /move
>>> /minage:20001231

>>
>>

>
 
Back
Top