Link to home
Create AccountLog in
Avatar of Jeffrey Renfroe
Jeffrey RenfroeFlag for United States of America

asked on

Check for a file in user temp with a batch file

Hello. I need to check if a file is present in the user temp and if so do not run an exe. I think the below code I had would work but it is not. Any ideas on what I am missing?
if exist %temp%\skipdefrag.flg goto :eof

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of sirbounty
sirbounty
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Jeffrey Renfroe

ASKER

That helped. Thank you.
Thank you