Computing.Net > Forums > Disk Operating System > Help Needed

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.

Help Needed

Reply to Message Icon

Name: Prince
Date: February 19, 2001 at 06:40:27 Pacific
Comment:

Can someone teach me how to insert a string to every line of a textfile and know where to start and stop regardless how many lines are there in the textfile?
For example - the textfile goes like this:
asd2qddsf.zip
asdggfdfg.zip
asdasd.zip
.......etc

Then the final product should give:
del zcxvzxcvz.zip
del asdf14dsf.zip
del Dfqq23fsdf.zip

Adding a "del " string in front of everyline from the first line till the last without adding it to the empty lines below...
Is that possible using batch, dos or windows? Please Help. Thanks. Please teach me how to use the program if it is possible to make.




Sponsored Link
Ads by Google

Response Number 1
Name: Ronin
Date: February 19, 2001 at 10:40:44 Pacific
Reply:

What is it that you are trying to accomplish? It sounds like you want to edit existing text files by adding del ---- to them.

If you want to know how to delete all files named ----.ext then use

FOR %%A IN (*.EXT) DO DEL %%A

where EXT is the extension of the file you wish to delete.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Help Needed

DOS command line help needed www.computing.net/answers/dos/dos-command-line-help-needed/14756.html

hard drive help needed www.computing.net/answers/dos/hard-drive-help-needed/12012.html

DOS/ UNIX command help needed www.computing.net/answers/dos/dos-unix-command-help-needed/10499.html