-
Re: Files Exist
Steven KlassenJul 20, 2012 7:49 AM (in response to jacob_kreed)
Sounds like a powershell script that hits a UNC on the network (i.e., \\systemname\path\to\files) and then runs through the logic you're talking about. If you give me more details I can hack something up for you.
-
Re: Files Exist
jacob_kreed Jul 20, 2012 8:04 AM (in response to Steven Klassen)I have several files in \\hercules100\shared which are use pdf and imp extension. And really want to how new files have been created on that work day
-
Re: Files Exist
Steven KlassenJul 20, 2012 8:43 AM (in response to jacob_kreed)
Here's some PoSH that would do the trick. Though now I realize this is the ipMonitor forum and not Server & Application Monitor. Whoops! You might still be able to make use of it; I know nothing about ipMonitor.
# get all the new files in that path that end in pdf or imp that were created today
$total_new_files = (Get-ChildItem "\\hercules100\shared\*" -Include ('*.pdf','*.imp') | ?{ $_.CreationTime.Day -eq (Get-Date).Day} | Group-Object).Count
-
Re: Files Exist
jacob_kreed Jul 20, 2012 9:03 AM (in response to Steven Klassen)Where would you put this script normally
-
Re: Files Exist
Steven KlassenJul 20, 2012 9:04 AM (in response to jacob_kreed)
You could run it from any system that has access to that path. It would give you the total number of new files. In ipMonitor, I have no idea. I write these scripts for SolarWinds's Server & Application Monitor product.
-
-
-
-