Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista Tutorial - Forfiles command problem

Reply
 
Old 06-12-2009   #1 (permalink)
Admin
Guest


 
 

Forfiles command problem

Hi,
On win 2003 r2 We have an activity to move old files which are 2 year old
from E:\ Accounts directory to external USB drive partition F:\Accounts so
I have used below command to move
E:\Accounts>forfiles /s /m *.* /d -730 /c "cmd /c if @isdir==FALSE move
@path F:\Accounts".The files are moving but what was the folder structure is
there in E:\ Accounts its not creating and moving with same structure in
F:\Accounts simply moving all the files to F:\Accounts the problem is that
its over writing the files and for reference its not good.Please help me.



My System SpecsSystem Spec
Old 06-12-2009   #2 (permalink)
Pegasus [MVP]
Guest


 
 

Re: Forfiles command problem


"Admin" <admin@xxxxxx> wrote in message
news:OD2F$qx6JHA.1432@xxxxxx
Quote:

> Hi,
> On win 2003 r2 We have an activity to move old files which are 2 year old
> from E:\ Accounts directory to external USB drive partition F:\Accounts
> so I have used below command to move
> E:\Accounts>forfiles /s /m *.* /d -730 /c "cmd /c if @isdir==FALSE move
> @path F:\Accounts".The files are moving but what was the folder structure
> is there in E:\ Accounts its not creating and moving with same structure
> in F:\Accounts simply moving all the files to F:\Accounts the problem is
> that its over writing the files and for reference its not good.Please help
> me.
Nothing to do with VB Scripts - I recommend you repost in
alt.msdos.batch.nt.


My System SpecsSystem Spec
Old 06-12-2009   #3 (permalink)
Admin
Guest


 
 

Re: Forfiles command problem

Hi,
Could you provide the respective group link?

"Pegasus [MVP]" <news@xxxxxx> wrote in message
news:O1%23WMDy6JHA.1372@xxxxxx
Quote:

>
> "Admin" <admin@xxxxxx> wrote in message
> news:OD2F$qx6JHA.1432@xxxxxx
Quote:

>> Hi,
>> On win 2003 r2 We have an activity to move old files which are 2 year old
>> from E:\ Accounts directory to external USB drive partition F:\Accounts
>> so I have used below command to move
>> E:\Accounts>forfiles /s /m *.* /d -730 /c "cmd /c if @isdir==FALSE move
>> @path F:\Accounts".The files are moving but what was the folder structure
>> is there in E:\ Accounts its not creating and moving with same structure
>> in F:\Accounts simply moving all the files to F:\Accounts the problem is
>> that its over writing the files and for reference its not good.Please
>> help me.
>
> Nothing to do with VB Scripts - I recommend you repost in
> alt.msdos.batch.nt.
>

My System SpecsSystem Spec
Old 06-12-2009   #4 (permalink)
Pegasus [MVP]
Guest


 
 

Re: Forfiles command problem


"Admin" <admin@xxxxxx> wrote in message
news:eX50AWy6JHA.4116@xxxxxx
Quote:

> Hi,
> Could you provide the respective group link?
>
Google is your friend. Put the link I gave you in my first reply into a
Google search box and see what happens - like so:

"alt.msdos.batch.nt"


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Run command problem in vbs VB Script
FORFILES Command VB Script
Re: Problem with Command Interpreter Vista General
Problem with get-command PowerShell
Forfiles question .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46