Determine if app is installed for a batch file #5860
Unanswered
wally-crunk
asked this question in
Help and Questions
Replies: 2 comments
-
You could use |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is where I've arrived. It would be nicer and cleaner if there was an %ERRORLEVEL% set. I think this will work with any scoop app.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As with this discussion, I'd like to check if an Scoop is installed --- but also check if a certain app is installed.
My goal a batch file that will
It looks like I can do
But I don't seem to be able to get an ERRORLEVEL when "scoop which sox" finds nothing:
I don't mind if I use 'scoop prefix xxx' or 'scoop which xxx' — but neither one outputs an errorlevel that I can see.
For batch file purposes, is there a better way to check if a scoop app exists or doesn't exist?
Should I just check if my variable %%THE_DIRECTORY is a valid directory?
Beta Was this translation helpful? Give feedback.
All reactions