Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Do not continue until a file exists in powershell

$
0
0

Hi,

I was wondering if there is a method in powershell to get it to 

continually check whether a file exists and do not progress until it finds it.

i.e

DO WHILE  

c:\flag.txt NOT EXISTS

Wait 10 seconds

END

<Next command >

So that the <next Command> section is only executed once it finds the file c:\flag.txt

Is this possible?

Thanks,

Zoe


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>