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

Simple Batch Loop

usamahashimi23, on Wednesday July 9, 2008 01:15:17 PM
Hello,


I want to make a batch file which creates a certain amount of text files without copying and pasting code.
That is, I want to make it perform the action once, then loop the code x times. X could be 10,000 so I don't want to have to copy and paste code 10,000 times.
E.g.
If I want to create 5 text files with "Hello" in the title name, the output would be:
hello.txt
hello.txt
hello.txt
hello.txt
hello.txt
Configuration: Windows XP
Internet Explorer 6.0
Reply to usamahashimi23  Report this message to moderators Go to last message

1


  • 1
    This message seems useful, vote!
  • Ce message ne vous semble pas utile, votez !
  • Report this message to moderators
 anithNair15, on Wednesday July 9, 2008 01:54:57 PM
hello

Try this one. @echo off
for /l %%i in (1 1 10) do (type nul > Hello%%i.txt)
Reply to anithNair15

Results for

Batch loop to start excel.exe Hello, I am facing problem with one of my applicaiton exe file gets stop anytime and frequently. was trying to create batch file that will search for applicaiton exe file in process (exe file in tasklist eg. excel.exe), if find it will go in loop to... en.kioskea.net/forum/affich-30772-batch-loop-to-start-excel-exe
Help with Loop in batch File using input from (Solved) 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,... en.kioskea.net/forum/affich-15768-help-with-loop-in-batch-file-using-input-from
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

Results for

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
Introduction to Dark BasicIntroduction to Dark Basic What is Dark Basic? Step 1: How to start? Step 2: How to create a simple menu? Key Features of Dark Basic What is Dark Basic? Dark Basic is an object oriented programming language that allows you to... en.kioskea.net/faq/sujet-483-introduction-to-dark-basic

Results for

Batch file - listing shared folders in domainHello, I'm desperatly looking for a script that will allow me to create a list of all the PC's that have shared folders on a given domain or list I provide. I need it to do some auditing on PC's that have shared folders. Please any help... en.kioskea.net/forum/affich-25691-batch-file-listing-shared-folders-in-domain
Shutdown a program at startup?I'm looking for a way to shutdown a specific program upon startup. I was originally thinking I could use a .bat file and just place it in the startup folder but maybe theres a simpler way? Plus I'm not familiar enough with batch to know how... en.kioskea.net/forum/affich-26356-shutdown-a-program-at-startup
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

Results for

Download FileUtilsCMTo improve the functionalities of Finder, nothing simpler, use FileUtilsCM! FileUtilsCM is a batch of several utilities for Finder, it allows: - to refresh the posting of an object in Finder - to modify the modification or creation dates a file -... en.kioskea.net/telecharger/telecharger-962-fileutilscm
Download DC Simple CalendarBy default, Windows do not consist of calendar. However Outlook Microsoft has an agenda where you can note dates or of think of animals. But to have a calendar in full measure, it is necessary to install gadgets or other tools of type. DC Simple... en.kioskea.net/telecharger/telecharger-692-dc-simple-calendar
Download BatchDownloadNot to waste time any more for downloading pictures one in one, try this extension Firefox. BatchDownload is an extension Firefox allowing him to download several Internet contents at the same time. It is especially intended for certain types of... en.kioskea.net/telecharger/telecharger-646-batchdownload

Results for

Internet technologies - ADSL - Local loop unbundling The part of the telephone line arriving at the subscriber is called the "local loop". In order to use high speed internet (ADSL), Internet Service Providers (ISP) must install connection hardware to their server at the telephone exchange of the... en.kioskea.net/technologies/adsl-degroupage.php3
HTML - Markups HTML is not a programming language. Rather, it is used for describing the layout and format of content, written in the form of simple text. An HTML page is a basic text file containing tags for specifying text format, images, etc. The use of these... en.kioskea.net/html/htmlbalise.php3
Spreadsheet - Arithmetic expressions Arithmetic expressions are simple expressions built with arithmetic operators and constants or references to cells. Operands are the values upon which the operator acts. There are two types of arithmetic operators: Unary operators that act upon just... en.kioskea.net/tableur/tabarithm.php3