|
You might first want to consider, or better yet - find out for sure, if this is a copyright violation.
The icons you find in the control panel are stored in the control panel files themselves (*.CPL). The are articles here on CP that explain how to pull the icons out of various .EXE and .DLL files. .CPL files are pretty much just like .EXE's. Just search the articles for "extract icon".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You can google for a nice little tool called "Buddy Icon Grabber". It will extract all icons out of any .exe or .dll file for you.
It can also scan your machine for all icons and let you save them to different formats and sizes. However, this mode is a system-resources eater!
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Can anyone help in extracting the exe files in such a way that the exe file does not install but extracts the all the files in a separate folder?
|
|
|
|
|
I gues you need a Zip like utility.
There is a free zip lib made in C# here icsharpcode.net
|
|
|
|
|
thanks for ur response. No i don't want any zip like utility. if i use diagonostics.process...,start(),waitforexit(), the exe file is extracted to install, but i want the exe file to extract to be unzipped or stored & not installing the exe package.
|
|
|
|
|
You'll have to find out what the command line parameters are for the file you want to unpack. If the .EXE supports the functionality you want, you're in business, all you have to do is use the correct commandline parameters to tell the .EXE to unpack itself but not run its setup. If not, oh well...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
system.diagnostics.process.start("filename.zip"); will extract the file (if it is an exe file , it starts to install)...all i need is to unzip the filename.zip, so that i can store the unzipped contents in another folder.
thanks
|
|
|
|
|
If you start a .ZIP file, it'll open in whatever application is registered to handle .ZIP files. It won't unpack the thing unless you give the correct command line parameters.
An .EXE is a different story. Not every .EXE self installer uses the same compression engine, so the command line parameters are going to be different from .EXE to .EXE. Herein lies your problem. You can attempt to use launch WinZip, or whatever .ZIP application your using, with the .EXE name in place of the .ZIP filename you would normally use. For example, a hypothetical command line for unzipping a .ZIP file might be:
WinZip -u -s myfile.zip c:\myfolder
You can replace the .ZIP filename with the selfextracting .EXE to unpack it:
WinZip -u -s mysetup.exe c:\myfolder
The problem with launching an .EXE and getting it to unpack itself is you don't know ahead of time if the .EXE supports unpacking with launching, unpacking to a traget folder, or what the proper command line parameters are to get it to unpack. You can only guess at this stuff.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I am curious abt how to unzip the exe file (without extracting)in a C# program
|
|
|
|
|
Read my previous post. It's got all the information you need and the pitfalls you're looking at.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ok yeah i tried by ur method as wzunzip c:\filename.zip c:\folder\
it really unzipped. wow
but if i replace it for a cabinet extractor exe file, it asks for password
what am i to do to unzip the exe file?
suggestions please......
|
|
|
|
|
Only you can answer that question since your the one holding the .EXE.
Have you tried Whatever.EXE /?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello,
I have a page, which has another page nested in a frame inside it. the parent page loads a UserControl object, which can has text fields, checkboxes, and other UI components on it, then it passes it to the framed page using Session[].
The user than enters text into the control.
when the user is done, they press a button on the parent page, and I try to get the UserControl using the Session[], I get it successfully, but I dont get any of the updated properties of the child controls on the UserControl. for example, if the user entered text into a text box, the .Text property of that textbox will still be what it was when the control was created.
Any ideas?
thanks
|
|
|
|
|
Make the viewstate property of it to true.
|
|
|
|
|
the control is in a .ascx file, it doesnt have any code behind or anything.
I added the following at the top of the file, but it didnt seem to make a difference.
<%@ Control EnableViewState="True" %>
|
|
|
|
|
Hello,
I have the following situation:
a CurrencyManager with which I put the informations from a database into some text/combo boxes on a windows form;
One of the fields from the database is of true/false type, but for that information to have meaning for the user I want the combobox not to display the 0/1 values (from the database) but some strings, like "started"/"stoped".
I do not know which is the easiest way to do this (neighter a easy way to identify the current record from the database to put a "if" statement on the 0/1 values of the field)... the binding manager only shows me the info in the database...
I would appreciate any idea,
Thank you,
Cristina
|
|
|
|
|
suppose I have a struct type structA; and an array
structA [] structArray = new structA[5];
how to test structA[0] is empty?
cause struct is value type, can not compare it with null.
Thank ya !
|
|
|
|
|
You have already answered your question. When you create the array at each element a structure with all its members set to their default values is generated. Its like working with integers.
|
|
|
|
|
There's no facility provided by the CLR to do it, you have to do it on your own. The simplest way is to have a bool variable that's set to true on any property/method access. You can then check if the bool variable is value and know that it's just been initialized.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
|
I think the problem stays the same. Here in Foo struct int a, b are initialized with its default values 0. What happens if we want to set "a[0].a = a[0].b = 0"? Then the check a[0].Equals(Foo.Empty) would succeed when its not empty anymore..
I think you need some sentinel value - a special or illegal value. For example you could use -1 as a sentinel. Default int value 0 also would do but you have to be sure that this value won't be treated as legal value.
|
|
|
|
|
|
not 'illegal'.. sentinel value.
...The point here is to check if the struct has been used or not....
Try this:
void SomeMethod()
{
Foo[] a = new Foo[2];
if (a[0].Equals(Foo.Empty)) // does a field by field comparision in valuetype
MessageBox.Show("a[0] = Foo.Empty");
else
MessageBox.Show("a[0] != Foo.Empty");
a[0].a = a[0].b = 1;
if (a[0].Equals(Foo.Empty))
MessageBox.Show("a[0] = Foo.Empty");
else
MessageBox.Show("a[0] != Foo.Empty");
a[0].a = a[0].b = 0;
if (a[0].Equals(Foo.Empty))
MessageBox.Show("a[0] = Foo.Empty");
else
MessageBox.Show("a[0] != Foo.Empty");
}
.......................
Output:
"a[0] = Foo.Empty"
"a[0] != Foo.Empty"
"a[0] = Foo.Empty" !!!! which means that this struct haven't been used before!
..but we used a[0] before...
|
|
|
|
|
|
I need a program that will run on a server that will be sitting idle waiting for a website to send it an xml file. when the xml file gets sent to the server I need to parse the xml file and insert some of the data into a oracle database.
The program needs to be a http listener.
the xml file will be small.
Where do I start for making this program?
Does anyone know if Oracle has a function like this built into it?
Thanks all.
|
|
|
|