Getting File Description
Sep 29, 2009Is there away to get file description without using SHGetFileInfo? ie *.txt=text document
View 19 RepliesIs there away to get file description without using SHGetFileInfo? ie *.txt=text document
View 19 RepliesI'm using vb 2010, and a newbie programmer I just want to ask how to change the description of the .exe file from WindowApplication1 to something else and how to change its icon? By the way, does applications made in vb 2010 requires .net Framework to run? Because i tried to run my .exe file in another pc but it gives me an error.
View 3 RepliesI want to get the description of an external .exe file from my vb.net app, rather like in task manager. My program can monitor active processes and open their file locations, but it cannot get their descriptions (like in task manager) I want it to be able to do this, and I've found the following code to get the description of a normal file (I had to re-write it from csharp):
Public Class Myform
Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential)> _
[Code]....
For example, if the process 'dwm.exe' is open, then I want my program to get the description "Desktop Window Manager." I want it to be universal for any program so it can be done with any open process.
i tried changing it in right click project/properties but it didnt work. how can i change the description of my .exe file?
View 4 Repliesi am trying to change the name of a music file, that has the new name set as its description title.
the name it has is like "ADGU". once you right click it and click on the tab Details then look down at the Description section, the Title is set to "Thoughts of a Dying Atheist"
that is the name i wish the file name to be.
now i am trying to set is in a for each loop, as i have over 300 music files that have this problem.
for each file as string in my.computer.filesystem.getfiles("C:Folder", fileIO.SearchAllSubDirectories, "*.*")
Dim fileInfo as new system.IO.FileInfo(file)
dim NewName as string = ...?(Properity Title)
[Code].....
I know album name is usually to music files & stuff probably but I guess album is what I need to categorize my video files correctly in Windows Media Player as it does organize my music files correctly when using album name & title. Anyways, these files I just want to change album name at the least & the description is something else I'd like to change on them as well. These files when I right click & go to properties then over to the details tab will show all the things like it usually does, but it will not let me change them. I am guessing this has to do because they are protected type files but I just want to change some things so they display correctly in Windows Media Player.
It already lets me change attributes inside Windows Media Player & at the bottom pane of the screen in explorer when the file is selected of attributes the file already had, but it won't let me add in the album name & description since it didn't start with one. I don't want to get rid of the protection on the files to be able to add these attributes either as I thought that was illegal or something, plus I don't want to download another program I don't have just to do this, whether it be a protection remover (which I said above, I think is illegal, even if it wasn't or isn't, I still wouldn't want to do that anyways) or even a thing that can change the attributes for me I wouldn't want to download since I just don't like downloading things that I won't use often, even if it's easy to remove & everything.
Since I already have VIsual Basic 2010 Express Edition installed I would just like to code something to change these attributes programmatically. It can be a simple textbox which is the location of the file and a button which changes the album name and description to "Just Text" that way I can put in each file I want to change & then click a button and it will be good from there. I will be able to change the variables after they are there to what I want after that from explorer or windows media player so I don't care for having textbox to change album name & description per file as I can just do this in explorer afterwords to what I want. By the way, files are in .wmv file format.
I am currently using the registry to get file descriptions for files. As an example, so that a DOCX file will return the description "Microsoft Word". I am doing this from the HKEY_CLASSES_ROOT registry key.However, registry access is extremely slow, and I need to do several thousands of these. Is there an alternative way to do this?
View 6 RepliesWhen I look at a file on my hard disk, e.g. test.csv, when I look at the Properties of the file, it is officially known as, "Microsoft Office Excel Comma Separated Values File", and file types of .pdf are listed as "Adobe Acrobat Document", etc. etc. All of this information can be seen in Windows Explorer too when my folders are displayed by Details. How do you get at this "type of file" information with .NET?
View 2 RepliesI was wondering if there's a way to add a description for a button that will be visible only when the mouse enter the button .
View 2 RepliesI want to add a description for my subs :
My Website [URL]
Simple Code lookup to get Description I have a static list of Street Type Abbreviations and their associated Street Type Descriptions: RD to Road. I have the complete list needed. There are 37 elements in the list - 37 Street Type Abbreviations with their associated Descriptions. The lookup will only happen once. The input lookup field is in a single field: stType.
[Code]...
I'm currently working with this piece of code:
CheckedListBox1.Items.Clear()
CheckedListBox1.DisplayMembe "ProcessName"
DiProcess
[code]....
How do i put a long description in my about box? I can't put it through Assembly Information because it cannot fit.
View 8 RepliesHow to replace cell value with their description. This is my grid
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" GridLines="None">
<HeaderContextMenu EnableAutoScroll="True">
</HeaderContextMenu>
<MasterTableView AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="SqlDataSource1">
<RowIndicatorColumn>
[Code]...
How to replace CustomerID with CompanyName which is come from Customers table during run time?
Please can you tell how I can change the name of the All Programs > Text description of the program when it has been installed?
View 3 Replieshow to create a look up showing value with discription using vb form
View 7 RepliesI want to put some description/tooltip text within textbox control which will vanish when the focus is on that control. Its similar to that like in the search box above. When the search box is empty it shows "Search MSDN with Bing" and when the contol gets the focus that string vanishes.
View 3 Replies<ProvideProperty("NullableBinding", GetType(TextBox))> _
<Description("Set to True if this textbox is bound to a nullable property.")> _
Partial Public Class NullableExtender
[code].....
I have a form that has appx 20 checkboxes. The data is stored in xml. We would like to have a textbox or panel at the bottom of the screen to display information about the check box. Just like the property box in the IDE. The information will be store in the description attribute. Does vb.net have functions that do that already or do I need to program for that? Also would I be best to but the description attribute on the xml or the property on the programs?
View 2 RepliesHow do I make my app have a description in the Processes tab of the Task Manager? Changing the assembly description doesn't do it apparently. Right now the description is just it's name.
View 1 RepliesI have a servicecontroller and though that service controller i set the name of a label.
Dim service As ServiceController
service = New ServiceController("W32Time")
Label1.Text = service.servicename*
[code]....
I want to set a directory worth or files to a certain decription, I know how to list all the files in a directory but how do I set a files description attribute to what I want it to be?
View 11 Repliesis there any way to get the Description of an application using VB.NET? So for example, instead of displaying Word.doc, Powerpoint.ppt... etc in a listbox, is it possible to display Microsoft Office Word 2007 if lets say the default return name is the shortcut name(with extension)?
EDIT: To check the Description of an application, go to your application, right click -> Properties -> General and you'll see the Description text.
This is how it goes. Currently, I'm using OpenFileDialog to open a file. However, am I able to get the Description(right click any program -> Properties -> General) of the file that I've chosen from there? I've found some leads with this .NET Application's Assembly path and Information. But that only applies to your own application itself.
View 4 RepliesWhere do you put the "main code" for lack of a better description? I can find all sorts of places to put code based on events like button clicks or forms loading. However, I can't seem to find a place to run code without an event (just idling).Basically I'm looking to monitor a file and call a sub when it changes. I can monitor the file fine based on the size but I can't figure out where to put code to call a sub when that changes. Everything seems based on user actions but that doesn't work in this case.
View 4 RepliesHow do I find the description for a computer in ActiveDirectory?
View 6 RepliesI'm writing a VB.NET function with a ton of overloads. I've seen that most .NET functions have parameter descriptions in IntelliSense. For example, when typing in String.Compare(, IntelliSense says Compares two specified System.String objects and returns... you get the idea. This description changes and you click through different overloaded versions of the same functions. When you start typing in something for a parameter, it describes the parameter you're currently inputting as well. Example: strA: The first string to compare..
View 5 RepliesI know its unlikely but I was wondering if there is any way to get the comments (i.e. the bits after the ''') of a class or property..? I have managed to get a list of properties of a class using the PropertyInfo class but I cant find a way to get the comments / description.. I need it for a guide I am writing for the administrators of my site - it would be great if it could automatically update if new properties are added, so there is no need to worry about updating it in the future too much.
View 5 RepliesI created one web user control with property named "ReadonlyField" with boolean datatype. I am able to use in my web pages and now i wanted to add a description to that property so that i dont need to explain each time to my team member what is that property's intention.
I got following snippet in c# but didnt find any equivalent in vb.net and also not sure whether it will work or not.
[Description("My Description")]
public int MyIntProperty
{
get {..}
[Code].....
i need the basic connetivity code and description in vb .net
View 1 Replies