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.
find and remove character in a bat file
Name: scrfix Date: May 2, 2009 at 18:18:05 Pacific OS: Windows XP and Vista Subcategory: Batch
Comment:
I am trying just to return the drive letter from the %systemdrive% variable. Since the variable returns C: for the most part I would like to remove the : and just have the C for the bat file. I would like this to work on both Vista and XP from a batch file. Any ideas how I can accomplish this?
I know I can use findstr /C:: to find the character however I am not sure how to remove the character from there.
Summary: Need to find and replace string in a file using Batch program. It is a text file (but with a different extension simple text and there are blanks in the file). I am a Mainframe programmer and new to B...
Summary: I need to figure out a method to find and replace text within a text file. I have a file named, "myfile.txt" that has the following; testing=1 database=500 rules=30 I want the batch file to find datab...
Summary: Hi I have a bat file that sorts out and move files from one directory to another, but there are some other files that I hope that can be removed as well. The rest of the files are zip, doc and exe fil...