Aug 01 2021 03:48 AM
Hi All,
Many thanks in advance, I have a powershell script that runs based on an input csv file. I have to run the script once a csv file is created, kindly help me by letting me know hos to trigger a task based on csv file creation.
Aug 01 2021 04:09 AM - edited Aug 01 2021 04:12 AM
Solution@PoorMens_Bravo Personally, I would add to the PowerShell code a check for the existence of the CSV file(s) and progress only if it exists, otherwise quit. You would then also need to set the task to run more frequently.
if (Test-Path -Path C:\SomeFileName.csv -PathType Leaf){"found, do something"}Else{"quit"}
Apologies if I misunderstood requirements.
Aug 01 2021 10:11 PM
Jan 13 2022 07:50 AM