rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Batch file to check for .exe file

yuyuman, on Friday April 18, 2008 07:11:02 PM
Hello,


Excellent forum you guys have here. I am trying to write a batch file here for work so I can check to see which PCs on my work network have a certain program installed. I'm actually checking to see if the SAP program is installed on a system. Since we have about a hundred PCs here I'd also like it to just spit out a text file with all of the PCs on the network that do not have SAP installed.
By the way it's installed @
C:\program files\SAP\

I'll be continually searching the forums here for more help but will appreciate any insight you can give. This is kind of my first attempt at jump into batch scripting and I hope to learn a lot from it.

Thanks in advance!
Configuration: Windows XP
Internet Explorer 6.0
Reply to yuyuman  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
anilchand6, on Friday April 18, 2008 08:23:17 PM
Hello


FOR /F %%a IN ('NET VIEW') DO IF NOT EXIST "%%a\C$\program files\SAP\whatever.exe" @ECHO %%a >> some.txt

You'll need admin powers on all of the PC's.
Reply to anilchand6

2


  • This message seems useful, vote!
  • Report this message to moderators
mrslash, on Saturday April 26, 2008 07:22:43 PM
Yes you definitely need to be admin to do these kind of stuffs ;)
Reply to mrslash

3


  • This message seems useful, vote!
  • Report this message to moderators
 leetcharmer, on Wednesday May 28, 2008 06:04:47 PM
And how would I tell it to install something from the network if that file does not exist locally in the specified location?
Reply to leetcharmer
Relevant topic found in the forum
10/03 13h08Batch files does not execute1
16/06 14h13Batch file help1
11/06 15h13Batch file Date2
10/06 08h48Batch file to copy file from one system to on1
More discussions about « Batch file to check for .exe file »
Software found in the relevant downloads
Download PC Inspector File Recovery 4.0PC Inspector File Recovery - PC INSPECTORâ„¢ File Recovery is a data recovery program that supports the FAT 12/16/32 and NTFS file systems. Finds...Category: Backup
License: Freeware/gratuit
Download SoftPerfect File Recovery 1.2SoftPerfect File Recovery - SoftPerfect File Recovery is a free and useful tool to restore accidentally deleted files from hard and floppy disks, USB...Category: Backup
License: Freeware/gratuit
Download FileZilla Client 3.0.11.1FileZilla Client - Possibilty to download a version compatible with Linux or MacOS <h2> </h2> FileZilla Client is a fast and reliable...Category: FTP
License: Open Source
Download FileZilla Server 0.9.25FileZilla Server - FileZilla Server is an FTP server supports FTP and FTP over SSL/TLS.Category: FTP
License: Open Source
More freeware about « Batch file to check for .exe file »