Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Batch, line by line files.
Name: Critical Date: July 2, 2009 at 11:11:59 Pacific OS: Windows XP Subcategory: Batch
Comment:
Hi there! Scripting a program for work but I am new to batch files and cannot get this segment to work.
@echo off set N= for /f "tokens=* delims=" %%a in (computers.txt) do ( ping /n 1 %%a | find "Reply" >nul if %errorlevel% == 0 goto reply @echo %%a | Cannot ping goto end :reply @echo %%a | Can ping :end ) pause
Intention: To get the list of computer names from 'computer.txt' and ping them replying, yes or no.
Problem: When I pull out the middle part in the loop and run it alone, it works fine. When I pull out the loop and run it alone, it works fine. When I combine it for some reason it just does not let me use %%a as a variable for a computer name.
Summary: Hi I really need some help to do what I thought would be a simple task. I am a real n00b when it comes to programming, but have now spent many hours trying to get this to work....without success :( T...
Summary: Hi all, this question is asked in many website but no one have the answer. but i know that in this website their is allot of genius. so how want to help me? i want to send email by bat file, thi...
Summary: I need a specific batch to rename txt files to a format, using the data from the txt file itself. data within the files is for example: 0199999920090018888888888888P20 The file name has to get this n...