How do I find and replace text in multiple files with a set of directories in Windows Xp using DOS
I have an app that must be running 100% of the time. It likes to crash. It can't be installed as a service (I've tried a few things already) The machine it's going to go on already has a 10...
Have a question regarding a dos batch copy. Say I have the following dir structure - a1\archive\a.txt, b1\archive\b.txt, ... , z1\archive\z.txt. How can I write a batch that will essentially...
I'm trying to write a batch file that is launched via the command prompt. The file will launch the batch file which copies files from one destination to another, It will look something like
...
I need to load dos 6.22 on a usb flash drive. I can get the files to install, but when I boot to the usb it hangs on 'starting ms-dos'. I tried a different method, but that resulted in the l...
e.g. Date = 2005/02/03
set filename=%date:~4,4%%date:~9,2%%date:~12,2%
The result (filename) is 20050203
How to output 20050202 ? Because "Date-1" is not worked on above.
One mor...
I have a little bat and txt file that I would like to use to help me run a script against 3 different programs. The idea as Im trying to make the script as generic and less text intensive. Ins...
Hi There,
I have a small batch script that runs a backup, and when complete, it appends some comments to a BackupLog.txt. I wanted it to say "Backup Completed at TIME on DATE", so I went hu...
Using windows XP batch file, how can i use an IF statement to check if one variable is not eq something and another variable is eq to something and act on that result?
Say varX=1 and varY=2...
I have a laptop with no parallel port. I use the computer to DJ with and the dance lights interface to the LPT1/parallel port. I'm running windows XP home. The application to run the lights re...
Hello, I am trying to install a printer using a batch file or using dos commands. I have a printer installed to a w2k machine and have several users accessing it at different times. I need to ...
Hello,
I am attempting to write a dos batch file which will replace a string within a file. I have utilised the FIND command to find the strings within the file. However I am unable to re...
Experts-
I am doing an XCOPY for a directory. I want to copy the directory to have a datestamp with the current date. So, if I copy the foo directory on June 1, 2007, the copied directory wou...
I am new to this forum, I just purchased a months time so I can get a job done. I am also fairly new with dos, though I know the windows OS very well.
Here's my question:
I need to edit the ...
In VB Scripts you can supress and resume errors by using "On Error Resume Next". How can you do that in a DOS batch file?
I have a script that shuts down virtual servers in VMware for back...
Hello,
I have an ftp site (which requires login) and a folder on my C:\ drive called FTP2Copy.
I have to copy files to this FTP site frequently - can i create a script in a batch file wh...
I want to write a batch file that will kill a process that is running. For example I want to kill a program called Assembly.exe using a batch file. What is the command I should write to kill ...
I want to write a .bat file that moves folders and files from one location to another.
The files that I want to move are stored as follows:
There will be a number of files in a known fol...
Hello,
I have been looking through the DOS batch file deletion code. I am trying to delete files which are older than 120 days. What would be the best way to code for that? I used one so...
I am processing a list of files in a folder. I wish to strip the first 2 characters from each filename (assume they're name 00file0.txt, 01file1.txt, etc). The end result should be file0 and...
Is there a case or switch statement in dos to use it in the batch file?
Thanks.
Hey!
I cannot remember the dos command which when run would display a list of active network connections (if memory servers, which it doesnt always, they were shown by dns names).
I want...
I want to be able to run 1 batch file to run 5 different batch files in their own cmd window. Currently, the 1st batch file runs (1.bat) and the 2nd batch file only runs if I exit the 1st one....
I have a Toshiba Satellite laptop computer to which was added a lot of network garbage from my former employer. I now am attempting to remove same and am having no luck. I have attempted to ...
I work in an organisation which uses domain environment setup consisting of XP and 2000 Pro workstations. Occassionally i had to clean up temporary files and temporary internet files and cooki...