Hello
i trying to make a script to monitor the size folder every hour and cant :
any help will apreciated.
i need something like this:
script one:
1-chek the actual size of the folder and write the size to a txt file.(in a remote pc like: \\pc2\folder1 )
script two
2-read the file size from the txt and compare with the actual folder size , if size was changed - close the script.
if size not changed open url.
why 2 scripts ? because i want to use the windows schedule,.
thank you very much!
Script to monitor folder size
Moderator: DosItHelp
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Script to monitor folder size
masterwix wrote:why 2 scripts ? because i want to use the windows schedule.
I'm not entirely sure how those two things are related; you can easily have both of those things in the same script that gets run hourly by the Task Scheduler.
Re: Script to monitor folder size
Please provide as many details as possible about the task.
What do you have so far, and what errors are you encountering?
Does the folder you are monitoring contain subfolders that need to be accounted for? Hidden files?
What do you have so far, and what errors are you encountering?
Does the folder you are monitoring contain subfolders that need to be accounted for? Hidden files?
As far as I am aware, network paths like that are not usable from the command line. You would need to map the path to a drive letter.masterwix wrote:in a remote pc like: \\pc2\folder1
Re: Script to monitor folder size
masterwix wrote:\\pc2\folder1
As far as I am aware, network paths like that are not usable from the command line.
Many commands do support that syntax, try the copy or xcopy commands.
Re: Script to monitor folder size
Good to know, I never tested them extensively.foxidrive wrote:Many commands do support that syntax, try the copy or xcopy commands.