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 transfer *.log files from one drive(c:/) to another

Reply
 
Old 12-03-2008   #1 (permalink)
Sarvesh


 
 

Need to transfer *.log files from one drive(c:/) to another

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. Could someone help me on this.

The file name will be like this: exportal081202.log

Thanks,
Sarvesh

My System SpecsSystem Spec
Old 12-05-2008   #2 (permalink)


Vista Ultimate x64
 
 

Re: Need to transfer *.log files from one drive(c:/) to another

Hi,
I think, this problem can be solved using the following code:

Dim FSO
Set FSO = CreateObject("Scripting.FileSystemObject")
FSO.MoveFile "c:\sample\*.txt", "c:\x\"
put the above code in a function and then implement the code. It has to work.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Transfer 32 bit to 64 bit - new drive Vista installation & setup
Loss of function of Start Orb + desktop, C Drive unable to transfer files now Vista performance & maintenance
Need to transfer files from one drive(c:/) to another drive(d:/)Options VB Script
Can I transfer the available 10GB on my D drive over to the C drive? Vista General
Can I transfer the available 10GB on my D drive... Vista file management


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