Dos Batch Related Problems & Solutions

34 tags
Refine Tags

Start a discussion

Results 1 - 30 of 34
[Solved] Batch file that will run exe file in a set of directorie
Summary: An existing batch file runs an executable located under C:\Program Files (x86)\Software\App\version1 How do I future proof this batch file so that it ...

[Solved] Use more than one color at the same time in batch file
Summary: HI. I need a cod to use more then one color in my batch file without change all batch colore . like ""this txt black "" & "" this txt green "" at the ...

[Solved] How to view n lines in txt files in subdirectories dos batch
Summary: Hello. I am trying to view specific lines of txt files within many sub-directories and output the lines to errors.txt. I have code that almost works...

Increment the number using batch script
Summary: Hi, i have the version.txt file and it has TEST_VERSION_V01 if i build each time it needs to be increment like TEST_VERSION_V02. I have the batch file...

[Solved] Search string and copy files in the folder.
Summary: DOS Batch File 1 I want to search string and copy files in the folder but don’t want to overwrite the files if it contains the same name. 2. Search...

[Solved] How do I insert a filename into a text file?
Summary: I have a number of .txt files and need to insert the filename of each into the first and second line and add a couple of line breaks. So I need the fi...

[Solved] How to find a string in data/text file under a header.
Summary: For example here is the data from the file. input_data_size_cel input_data_size_byt aggregate_data_size aggregate_data_size kernel_queries_trac total...

[Solved] Batch File store line variables and sum them up
Summary: My input file Count.txt contains the following: ] /Count 1 ] /Count 2 I am trying to add the numeric characters at the end of each line ad store it to...

[Solved] DOS Batch to copy first 100 lines of a text file
Summary: Hello. I would like to copy the first x lines of a HUGE text file to another text file. Is there a way to do this with a batch script? source.txt ...

[Solved] batch file add A.txt file to 4th line of B.txt file?
Summary: How do you add a A.txt file after the 3rd line of a B.txt file? (DOS batch file) A.txt this is 1st line of A.txt this is 2nd line of A.txt this is 3rd...

[Solved] Rename Multiple Files using DOS Batch Programming
Summary: i m having folder test. inside file called 20130204.csv and i want to rename it like 0416_20130204_1.csv. 0416 and _1 are static. Thanks ...

[Solved] DOS Batch/Robocopy Experts - Can this be streamlined?
Summary: I've created this to read a group of folders, sub-folders and files from one UNC path and append/copy it to another. Is there a way to clean this up, ...

Booting windows (from HDD ) in DOS
Summary: Hi all, I have a specific PXE booting solution in mind but I'm missing a little bit of DOS knowledge to make it work. Here is the situation: I want to...

How Do I Delete Lines From a Text File in DOS 7.1?
Summary: I have a text file with three lines. I want to create a new file (or modify the first) that only contains the third line. I also want to remove the f...

[Solved] How Do I Check If a Program is in the Execution Path?
Summary: I need to do this from an MS-DOS 7.10 boot floppy. I'm thinking something like: SET Found=FALSE FOR %%i IN (%PATH%) DO IF EXIST %%i\MYPROG.EXE SET Fo...

[Solved] Is There a Better Way to Validate a Path?
Summary: I have this code to check the validity of a path: :: This checks if the drive and/or path does not exist ECHO Any junk text > JUNK1.TXT COPY JUN...

[Solved] Need backup batch for Vista
Summary: I need separate backup batch scripts for XP and Vista/Win7. Given any one of the OSes, I think I can modify the script to accommodate the other. My go...

[Solved] Read a file into another file with a prefix
Summary: I discovered that I couldnt be granted BULKADMIN or SYSADMIN role on my hosted sql server db and trying to bypass the bulk insert operation by creatin...

.BAT to output different line every time
Summary: Hello forum peeps :] I've seen plenty of batch file posts here but they don't quite do what i need (although still very helpful). I would like a batch...

Batch: Convert Year + Day of year into date
Summary: Hi How can I convert a Day of Year + Year into a date with Win XP command prompt? I have found several ways to convert Julian dates into dates, but n...

Rename part of filenames via Batch
Summary: I would like to rename the first part of each file while keeping the rest intact, using a DOS BATCH file if possible. On the site, there are others p...

How to do nesting in variables in batch
Summary: I am trying the following code to print 34 and 86. But only 34 is coming in the output. please help. Also !myvar_!num!! is not working. Please sugge...

how to store a string in a variable in Batch
Summary: Hi, i am new to batch scripting and i need help in writing a script to store a string of four words in a variable that starts with local and other th...

dos command - xcopy only files newer than 90d
Summary: Hello all, i am usign with GPO a batch file at logon and logoff of the computers which copies a specific location to a network location for backup re...

How do I move my renamed files?
Summary: Hi there! I need to move my randomized files to another directory. Can anyone help me with the right amount of code to accomplish this? What I have is...

Batch Moving Files in Folder of FileDate-Part
Summary: Hi all, I have a lot of Files in an Folder. These Files should be moved in an new Folder with the Month and Year of the File. For example: 23.09.2009 ...

DOS Batch program to change Admin password
Summary: Hi Geeks, Assist me with a Batch file code which should change the Administrator password to a default one and its required for my SOHO. My environmen...

How to to pipe multiple commands with 'for'
Summary: Is it possible to pipe multiple commands in a for statement? For instance, I am trying to get the number of lines in a file assigned to a variable. Th...

Inserting text in a txt file using DOS BATCH
Summary: I have a txt file (say input.txt) with the following lines [as specified in BEFORE] in it. Assuming that there are two txt files 123.txt and 456.txt, ...

Batch Files - Carriage Return
Summary: I'm trying to write the body of an email into a vaiable in my batch file so I can later on use it to send an email via msdb.dbo.sp_send_dbmail. Is the...

12


Ask Question