I am struggling with my simple script.
I have that in all.ps1(that executes two ps1s inside)
powershell.exe -noexit C:\Users\user\Desktop\1.ps1 //start moving mails through Outlook
//I need command to wait 10 minutes then stop Outlook(no need to know how many mails have been moved)
powershell.exe -noexit C:\Users\user\Desktop\kill.ps1(script that kill outlook)
//I need comand to wait 10 sec and again execute 1.ps1(loop)
I tried to use Wait-Job and Start-sleep without avail. How simple I can achieve my requirements above?
Aucun commentaire:
Enregistrer un commentaire