I just want to say off the bat that I am new to the Level Platform systems, and also very new to attempting scripts. I have been tasked to see if it is possible to set up a script for LP that would also trigger an alert to let us know when a file was found in a directory.
Here is the situation:
I would like to design the script to search a directory for a specific file ext, which is .spi.
Inside this directory, there are quite a few .spi files, but some have CD in the file name which we do not care to see in our results.
Once the script has locates the new .spi file that was created from a back up we would like it to trigger an alert for us to see.
What I have so far (its not much). After many google searches I came accross the below script and just through my information into it to see if I could get it to work. Which it does. It finds the file and generates the report to my desktop. It finds the 2 .spi files I have put there. The problem is, one of those has "CD" in it, and that is what I would like to exclude. The end result would be to have the report really be an alert in LP.
(for /R "c:\users\kbosse\desktop" %%F in ("*.spi") do echo %%~fF,%%~zF)>c:\users\kbosse\desktop\report.csv
I have read a little bit about 'grep' but from my understanding that's not really a windows thing?
I would like to think I'm on the right path, but with my lack of experience of scripting, I'm trying to learn on the fly.
Does any of this sound possible?