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 - Need to write the VBScript to move the log files

Reply
 
Old 01-07-2009   #1 (permalink)
Sarvesh


 
 

Need to write the VBScript to move the log files

Hi,

Our application creates a log files on daily basis and these old log
files will get saved with date/sequance number. So the drive(c:/)
will
get filled with these files. Due to this, the application is hanging
because of the low disk space. So i want to write a vbscript to move
these old files. So that i can map this with one task and can run
this
once in a month automatically.

These files don't have any extension and the files will be like below

export.log.12
export.log.3

Could someone please help to write vbscript to move this kind of files
from one drive(c:/) to another drive(d:/) on the same system.

Thanks,
Sarvesh



My System SpecsSystem Spec
Old 01-07-2009   #2 (permalink)
Pegasus \(MVP\)


 
 

Re: Need to write the VBScript to move the log files


"Sarvesh" <sarveswara.p@xxxxxx> wrote in message
news:30606a99-9792-42ee-9f81-0c32ea28f22a@xxxxxx
Quote:

> Hi,
>
> Our application creates a log files on daily basis and these old log
> files will get saved with date/sequance number. So the drive(c:/)
> will
> get filled with these files. Due to this, the application is hanging
> because of the low disk space. So i want to write a vbscript to move
> these old files. So that i can map this with one task and can run
> this
> once in a month automatically.
>
> These files don't have any extension and the files will be like below
>
> export.log.12
> export.log.3
>
> Could someone please help to write vbscript to move this kind of files
> from one drive(c:/) to another drive(d:/) on the same system.
>
> Thanks,
> Sarvesh
>
>
Have a look at your identical post of yesterday and the answer(s) you
received.


My System SpecsSystem Spec
Old 01-12-2009   #3 (permalink)
Sarvesh


 
 

Re: Need to write the VBScript to move the log files

On Jan 8, 1:50*am, "Pegasus \(MVP\)" <I....@xxxxxx> wrote:
Quote:

> "Sarvesh" <sarveswar...@xxxxxx> wrote in message
>
> news:30606a99-9792-42ee-9f81-0c32ea28f22a@xxxxxx
>
>
>
>
>
Quote:

> > Hi,
>
Quote:

> > Our application creates a log files on daily basis and these old log
> > files will get saved with date/sequance number. So the drive(c:/)
> > will
> > get filled with these files. Due to this, the application is hanging
> > because of the low disk space. So i want to write a vbscript to move
> > these old files. So that i can map this with one task and can run
> > this
> > once in a month automatically.
>
Quote:

> > These files don't have any extension and the files will be like below
>
Quote:

> > export.log.12
> > export.log.3
>
Quote:

> > Could someone please help to write vbscript to move this kind of files
> > from one drive(c:/) to another drive(d:/) on the same system.
>
Quote:

> > Thanks,
> > Sarvesh
>
> Have a look at your identical post of yesterday and the answer(s) you
> received.- Hide quoted text -
>
> - Show quoted text -
Hi,

I checked that answer but that didn't help me to move the files those
are like below.

eg: export.log.2
export.log.4
export.log.8
export.log.10

Please someone help me on this.

Thanks,
Sarvesh
My System SpecsSystem Spec
Old 01-12-2009   #4 (permalink)
Pegasus \(MVP\)


 
 

Re: Need to write the VBScript to move the log files


"Sarvesh" <sarveswara.p@xxxxxx> wrote in message
news:cc436af0-f7bb-4076-a828-49274ff8db53@xxxxxx
On Jan 8, 1:50 am, "Pegasus \(MVP\)" <I....@xxxxxx> wrote:
Quote:

> "Sarvesh" <sarveswar...@xxxxxx> wrote in message
>
> news:30606a99-9792-42ee-9f81-0c32ea28f22a@xxxxxx
>
>
>
>
>
Quote:

> > Hi,
>
Quote:

> > Our application creates a log files on daily basis and these old log
> > files will get saved with date/sequance number. So the drive(c:/)
> > will
> > get filled with these files. Due to this, the application is hanging
> > because of the low disk space. So i want to write a vbscript to move
> > these old files. So that i can map this with one task and can run
> > this
> > once in a month automatically.
>
Quote:

> > These files don't have any extension and the files will be like below
>
Quote:

> > export.log.12
> > export.log.3
>
Quote:

> > Could someone please help to write vbscript to move this kind of files
> > from one drive(c:/) to another drive(d:/) on the same system.
>
Quote:

> > Thanks,
> > Sarvesh
>
> Have a look at your identical post of yesterday and the answer(s) you
> received.- Hide quoted text -
>
> - Show quoted text -
Hi,

I checked that answer but that didn't help me to move the files those
are like below.

eg: export.log.2
export.log.4
export.log.8
export.log.10

Please someone help me on this.

Thanks,
Sarvesh

=====================

What command/script did you use to move your files?


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Using script/FSO to write files with authentication VB Script
VBScript to move file in one folder to many folder VB Script
vbscript and batch files VB Script
how to write recordset datas of vbscript into existing excel sheet VB Script
Can I write VBScript with Visual Studio 2008? VB Script


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