Avatar of Jeffrey Renfroe
Jeffrey Renfroe
Flag 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

Windows Batch

Avatar of undefined
Last Comment
Jeffrey Renfroe

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
sirbounty

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jeffrey Renfroe

ASKER
That helped. Thank you.
Jeffrey Renfroe

ASKER
Thank you
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck