Flux rss
Search : in
By : Relevance Date Username
Statut : Solved

Help with Loop in batch File using input from

PeterPan, on Saturday 19 July 2008 à 14:00:36
Hi Together

I try to scan some PCs remotely and do want to automize this task.

I created a batch file doing a good job, however, it scans only one pc and then I do need to change the target system name.
I now want to create a comma seperated list, stored in a txt that is the reference for the batch to know what PCs to scan and got lost...

Can someone please assist me in getting the following done?

In "Cleer Type" it should like:

:Systemscan
IF "c:\myscan\clients.txt" is empty goto :end
ELSE
For Each Item listed in "c:\myscan\clients.txt" DO
command1.exe CSV /FO >> C:\myscan\logs\log1.txt
command2.exe CSV /FO >> C:\myscan\logs\log2.txt
END IF


Sorry, I know I am a lousy coder, but hopefully someone can make my life a bit easier?
Any help is much appreciated.

All the best from PeterPan :)
Configuration: Windows Vista
Internet Explorer 7.0
Reply to PeterPan  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
 PeterPan, on Saturday 19 July 2008 à 14:42:15
Ok guys, after doing some more reasearch due to frustration I found it myself...

For /F "delims=;" %%A in (c:\myscan\clients.txt) do systeminfo.exe /S %%A /FO csv /NH >> C:\myscan\systeminfo.txt"
Reply to PeterPan

Résultats pour Help with Loop in batch File using input from

Batch file which prompts for input of remote Hi Guys I want to know if is is possible to write a batch file that prompts you for the computer name that I want to copy files to. Ie I would like to replace MS office templates with new ones on another PC as the files have become corrupted but I... en.kioskea.net/forum/affich-22747-batch-file-which-prompts-for-input-of-remote
Batch file Date Hello, I am new to batch files and command line, but I need one that will tell me the day in three letters. Right now I have: set_day=%DATE% echo_date_day=%_day% But that tells me: DDD 00/00/00 What should i do so i get rid of the 00/00/0000???? en.kioskea.net/forum/affich-10090-batch-file-date
Batch file name(s) in memory? os Xp Hello, How would I go about writing a batch file to copy all the file names in a folder...just the file names not the files and then rename them to something standard like "video1.avi", "video2.avi",etc. THEN when I'm ready rename them to the... en.kioskea.net/forum/affich-1618-batch-file-name-s-in-memory-os-xp

Résultats pour Help with Loop in batch File using input from

Create and Open a RAR fileCreate and Open a RAR file How to create a RAR file How to open a RAR file RAR is an archive file format that is used during data compression, error recovery and file spanning. RAR is the acronym for Roshal Archive, inspired by the... en.kioskea.net/faq/sujet-143-create-and-open-a-rar-file
How to read and create a BIN and CUE file?How to read and create a BIN and CUE file? What is a BIN file? How to create BIN and CUE files How to burn BIN and CUE files How to read/convert BIN and CUE files What is a BIN file? A BIN and CUE file together create a binary... en.kioskea.net/faq/sujet-264-how-to-read-and-create-a-bin-and-cue-file
Creating an Autorun.inf fileCreating an Autorun file Allowing autorun Creating an Autorun.inf file Variations Customizing the icon Customizing the icon text Customizing the icon menu Allowing autorun Windows provide users with simple utility that runs... en.kioskea.net/faq/sujet-641-creating-an-autorun-inf-file

Résultats pour Help with Loop in batch File using input from

Batch file for one current date in text fileHello, I need a batch file to get the current date and time of my computer and put it in a text file every time I run it.But I need the most current date&time to replace the previous within the same text file, so that my file can have only one record,... en.kioskea.net/forum/affich-16514-batch-file-for-one-current-date-in-text-file
Batch file to check for .exe fileHello, 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... en.kioskea.net/forum/affich-4946-batch-file-to-check-for-exe-file
Batch files-space problemHello, I have a problem with copying with batch files. When the source and/or destination in the xcopy command has space in itself, it won't copy. It reports "Invalid number of parameters". For example, the source is C:/NewFolder/*.* Now it... en.kioskea.net/forum/affich-8915-batch-files-space-problem

Résultats pour Help with Loop in batch File using input from

Download Instant File Name SearchAlthough mode searches already exist on Windows, sometimes more definite tools for specific tasks are needed. Instant Name Search Goes off search files by name on your computer or on a network instantly. It supports the Boolean operators (AND,or,... en.kioskea.net/telecharger/telecharger-630-instant-file-name-search

Résultats pour Help with Loop in batch File using input from

Operating systems - Files A file is a suite of binary information, i.e. a suite from 0 to 1. This file may be stored in order to keep a record of this information. A text file is a file comprising characters stored in the form of octets. This file is saved on the hard drive... en.kioskea.net/systemes/fichier.php3