Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Using MPress with VB.NET?

I'm trying to compress my app with Mpress but I can't find any command lines for it. I have the mpress.exe executable in my resources.

When I try this:
Code
Shell(My.Resources.mpress & "-s " & SFD.FileName, AppWinStyle.NormalNoFocus, True)

If gives me an error:
"Operator '&' is not defined for types '1-dimensional array of Byte' and 'String'"


I'm not sure where to go with this...
Christ almighty, the error explains itself! L2Code.

Seriously, look into very, very basic tut's & you'll see how silly this post is.
(Aug 30, 2012 09:58 AM)Support. Wrote:  Christ almighty, the error explains itself! L2Code.

Seriously, look into very, very basic tut's & you'll see how silly this post is.

Then how the fuck am I supposed to add the "-s " and SFD.FileName to the application?
In simple Words,
You Need to Copy mpress to the HDD,
You Cant Use it from resource.. Thats all..
(Aug 30, 2012 10:02 AM)N3oNight Wrote:  In simple Words,
You Need to Copy mpress to the HDD,
You Cant Use it from resource.. Thats all..

He can always put it into a memory stream and run it? Right? Not sure, never tried it but give it a shot.
OK, I have the file on HDD but now it's not running. How would I include the filename, so that the application may use it?

Here's mpress's commands and format:
Code
Usage: mpress [-options] <filename> [-options]

Options:
-i
-q
-b
-x
-S
-u
-h
-m
-r
-s
-L

I've tried the following:
Shell(Mpress + "mpress " + SFD.FileName)
File.Open(Mpress + "mpress " + SFD.FileName)
Shell(Mpress + SFD.FileName)
Dude, HF is not a live version of Google. What your asking is so simple & I know for a fact there are many threads on reading console applications output & starting programs with command line args but it's obvious you don't want to learn. Do some research because your coming across as a dumbass. Not flaming, just truth.
Try this
Code
System.Diagnostics.Process.Start("C:\YourPath\Mpress.exe", SFD.FileName & " -s")
Code
IO.File.WriteAllBytes(My.Resource.mpress, My.Application.Info.DirectoryPath & "\mpress.exe")
Process.Start(My.Application.Info.DirectoryPath & "\mpress.exe", "-s")
Thread: Backend Web-Dev. - by SomeWhiteGuy

WATCH OUT 'LIL HOE,
MY PARTNA STILL SMOKE ON PAROLE
selling -
megabits.org + freakin.pro
(Aug 30, 2012 12:07 PM)SomeWhiteGuy Wrote:  
Code
IO.File.WriteAllBytes(My.Resource.mpress, My.Application.Info.DirectoryPath & "\mpress.exe")
Process.Start(My.Application.Info.DirectoryPath & "\mpress.exe", "-s")

That worked, thank you. The others I had no luck with.
This is hilarious, this post is seriously coming from a guy who made this post?

https://hackforums.net/showthread.php?ti...id25998159

You didn't deserved any help, you pathetic asshole.
(Aug 30, 2012 12:43 PM)Percocet Wrote:  That worked, thank you. The others I had no luck with.

You're welcome.

Glad it helped, and that it works considering I wrote that freehand, lol.
Thread: Backend Web-Dev. - by SomeWhiteGuy

WATCH OUT 'LIL HOE,
MY PARTNA STILL SMOKE ON PAROLE
selling -
megabits.org + freakin.pro
(Aug 30, 2012 12:48 PM)Daylloween Wrote:  This is hilarious, this post is seriously coming from a guy who made this post?

https://hackforums.net/showthread.php?ti...id25998159

You didn't deserved any help, you pathetic asshole.

I can see why you have so much -rep douchebag, also you can't find anything about Mpress on this forum.
You can't run a byte array. Daah, write it first to the HDD and then use the path for executing it.. You should check out UbbeLoL's compressor. Might come in handy :)

[Image: HJdK32K_x]
lensert.com is the new screenshot utility, try it out now!
OSX & WINDOWS



Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by iLogic™Jun 14, 2015 03:44 AM 3 190 Jun 14, 2015 03:44 AM
Last Post: iLogic™
[.NET] by BanksуSep 20, 2011 07:28 AM 9 256 Sep 20, 2011 07:28 AM
Last Post: idonotcare
[C#] by BanksуSep 18, 2011 05:57 AM 3 125 Sep 18, 2011 05:57 AM
Last Post: Banksу