View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
GS[_2_] GS[_2_] is offline
external usenet poster
 
Posts: 3,514
Default Quick file overwrite script

GS wrote:

Is there a quick VBA script that will go into each file in a
directory
and overwrite it with at least 100K of random text or data?
Ive been doing it manually with copy and paste, so I know there's
gotta be an easier way, ughh, hahaha.


What kind of files? Assuming plain text...

Absolutely no problem using VB[A]'s built-in file I/O features and a
Dir drill procedure! *However*, I will not post such code due to its
very high potential to be used for terrorism on other unsuspecting
computers!


The posting of such code here, or lack of same, isn't going to affect
the ability of a person to find such code, or a program to do the
same. Even Microsoft offers programs to do what the OP is asking
for.


Be that it may.., I choose to *NOT* propagate such code!<g

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion