Batch- If statements based on files/websites open
问题 In my previous question, Batch if statements based on opening a program, I asked how to make a batch if statement based on opening a program. Can I make a batch-file IF statement based off: File Paths in explorer: e.g. "C:\USERS\admin\desktop\" Files: e.g. "James.csv" Websites: e.g. "http://www.google.com" To make my question a bit clearer: @echo off Set WinProcess1=D:\PFI.vbs Set WinProcess2=c:\ Set WinProcess3=http://www.google.com :props tasklist /FI "IMAGENAME eq %WinProcess1%" | find /C