Hack Forums
[.NET] [TUT][VB.NET] How To Make Your Own "File Pumper" - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [TUT][VB.NET] How To Make Your Own "File Pumper" (/showthread.php?tid=192181)

Pages: Pages 1 2 3 4 5 6 7 8 9 10 11 12


* - Support. - Sep 18, 2011

Hey thanks alot for this, i'm learning VB (no, not a skid, not without thinking) and this really helped.

Any chance on a tut how to implement themes?


* - Rets - Sep 26, 2011

Great work on the tutorial. worked fine aswell, but you might fix the pictures. thanks -JunioR :)


* - Raspberry Pi - Mar 7, 2012

Yeah this actually...does not work haha.


* - Lambasoft - Mar 7, 2012

Why can't we just replace the 0 in :
filetopump.WriteByte(0)
to the desired value ?


* - remmaz - Apr 30, 2012

Just had a go at making this

PERFECT!

First time no mistakes, this TUT rocked, unlike some it explained everything as well

Love it!

keep up the good work

🤝


* - xDISFIGURE - Apr 30, 2012

i coded a file pumper there is already 2 years ago, to pump all type of file in openfile dialog change the extension.
.exe -> .avi
.exe -> .mp3
etc ... forme, it worked


* - neo1 - Apr 30, 2012

wow nice tut,it helps me alot thx
and it works too no problems no errors thx men


* - devrian - Apr 30, 2012

Why a 3 year old thread?

Anyways, thank you for this, it works great!


* - Kenneth1007 - May 5, 2012

This is very awesome, thanks for posting this Theref!


* - Subzero414 - May 11, 2012

Hmm it used to work perfectly then when I used a new theme and replaced the textbox1.text with ghosttextbox1.text and all that it worked, no problems debugging but when I save it to the desktop it doesnt increase the file size :S?


* - PianoWithoutKeys - Aug 28, 2012

Thanks, great tutorial, very HQ! Got my own file pumper :D


* - Chemiculs - Aug 28, 2012

Very nice tool, although their are some simple things in the code that could create issues at run time.

Always make sure the user has chosen a file when using save / open file dialogs.
The way to do that in C# would be

Code
SaveFileDialog sfd = new SaveFileDialog();
if(sfd.ShowDialog() == DialogResult.OK){
  //  Handle the selected file here
}

Also, when using Streams, it is good practice to use the 'Using' statement, as it clears all resources used by the stream automatically.

Code
using(var fs = File.OpenWrite(filepath)){
  //Use the stream in this block of code
} // Resources used by the stream will be cleared

Also, you may want to use a background worker to write large amounts of data to a file, or your Application may become unresponsive.

That code can easily be converted to VB.
And i understand that this may have just been a quick tutorial, this was for the Copy / Pasters in here.


* - pouvoire - Feb 9, 2013

hello
well jet followed the tutorial
but when I jet pump well mesagge
but the file remains the same size
and no error message in vb.net


* - 4RG0S - Feb 9, 2013

Great Tutorial, thank you for sharing this :)


* - wοrlockt - Feb 10, 2013

Great tutorial! Worked good for me. But I have a problem, when I open the pumped file, it says "rtl120.bpl" needed (I pumped the TuneUp-Utilities2013 shortcut to 10 MB)