On Error Resume Next
Set oFileSys = WScript.CreateObject("Scripting.FileSystemObject")
sRoot = "C:\PATH"
today = Date
nMaxFileAge = 1
DeleteFiles(sRoot)
Function DeleteFiles(ByVal sFolder)
Set oFolder = oFileSys.GetFolder(sFolder)
Set aFiles = oFolder.Files
Set aSubFolders =...
Hey! it's me one more time... I learned a lot from your advices (thanks one more time)
so I deleted 12 ifs and added 3rd party powershell script to mail me if somethings goes wrong but I have
one problem... if source folder is empty i will also recieve email because script thinks this is...
Guitarzan THANKSS!!!
your suggestion was very helpfull.. "IT'S AAALLIIIIVEE" [2thumbsup]... finally!
so it is :
MAPPING ( with other letter than Z)
SCRIPT
and REMOVE line at the end...
its going every 5 minutes now .. :)
....
Guitarzan if you have some more patience.. any idea how this...
THANKS FOR SUPPORT !!!!! Everything is working now.. but I have big problem with Task Scheduler..
My Script is working when I will click on it two times ( I mean on icon ) but I need it to work with task scheduler
so I made new task..... and when task scheduler runs this script I get info 'PATH...
hey I did it ! :) but here i have another problem and I don't understand it.
my script is working like I wanted .. so I made new task in task scheduler but now he is giving me 800A004C error... ( path not found) ??
when i click on it with mouse or run it in cmd it is working ....
any ideas...
Hey guitarzan...
My code is so simple that I ashamed ... ( I am really beginner )
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "C:\log1\*.*" , "Z:\iRT\IT\test\", OverwriteExisting
If this could somehow be able to check current month...
Hello everybody!
I am new here because I am looking for help with my vbs script.
(sorry for my english if I will make any mistakes)
So my script need to copy every files from source folder into
other destination folder which is on mapped drive --- and this part is ready and working.
I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.