if statement - How can i make my batch file search for a file and run it? -


so far, have tried make batch file see if file there, , if yes, execute it. works default microsoft programs (word,powerpoint,windows media player...), whenever try external program (i took inkscape have taken cod, .exe file), says command syntax wrong. here's code:

if %prog% equ ink (  if exist c:>inkscape (     start ""  "c:\program files (x86)\inkscape\inkscape.exe" ) else (     rem sorry ) ) 

can tell me what's wrong, , please give script example. thank you.

if %prog% equ ink (      if exist "c:\program files (x86)\inkscape\inkscape.exe" (          start "" "c:\program files (x86)\inkscape\inkscape.exe"      ) else (          rem sorry      )  ) 

syntax if exist filename - not if exist foldername


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -