Get All The Extensions In A Directory?
Nov 14, 2009How can I able to get all the extensions in a Directory. This is for vb.net windows application.
View 3 RepliesHow can I able to get all the extensions in a Directory. This is for vb.net windows application.
View 3 Repliescan i create IE extensions with vb.net? and if so where do i start?
View 9 RepliesThis is my problem:
<System.Runtime.CompilerServices.Extension()> _
Function CastAs(Of TSource As TTarget, TTarget)(ByVal array As TSource()) As TTarget()
Return Global.System.Array.ConvertAll(array, Function(src As TSource) DirectCast(src, TTarget))
End Function
I can open the extension manager and browse all the extensions, but as soon as i click the "Download" button to install it, i get this error;
"The extension could not be installed because the following error occured:
The remote server returned an error: (404) Not Found."
when you use the object browser to see the features of a sortedlist elementat is not shown , but because a sorted list inherets features of ienumerable it works, cant that be corrected
View 1 RepliesI have a combobox that shows all filenames in a partisular folder, how can I just show the File Extensions?
Dim ComboBox1Items As List(Of String)
Dim myDir As New System.IO.DirectoryInfo(TreeView1.SelectedPath)
ComboBox1Items = New List(Of String)
[Code].....
I'd like to inquire if it is possible to create a specific file extension like for example .wew and when the user double clicks over the that kind of file ,it excutes the programm associated with it ,and how can the contents be interpreted by the program, I tried to find how to do that ,and I only found soultion that deal with windows shell scripting
View 3 RepliesI am trying to open files with different extension which are not supported by windows as well.Extension like (.bin,.dat,.lzc etc etc) Is there any way i can access these files by using any emulator?
View 1 RepliesFirstly, I understand that this might sound more or less abstract, but this is because I have no previous experience in such applications. I completed an application using Visual Basic and is running and tested. What I want to do is
to make this application expendable i.e I could write other pieces of code and I would just plug it in to the application "somehow" and it would be added as a functionality.
i am using the getfiles function to have all the files in a specific path but i want to use the getfiles to find .rar and .mp3 getfiles("c:program files",)
View 2 RepliesI have my listview showing how I would like but I would like to show it without extensions to the files listed. So when a user dbl clicks the icon it opens in it associated program. Once I take away that extension the dbl click fails as it can't find the file.Is there a better way or easier way to show the files without their extensions and have then still be functional?
View 7 RepliesWhat is your favorite Visual Studio add-in/setting? I'm wondering what are the extensions that you love or can't live without?[code]What other greats are out there? Mark them as free or not as well...
View 2 Repliesthe problem is I'm trying to access a file that has no file extension. I think you can see why this is so difficult. The specific file I'm trying to edit is the hosts file (C:\Windows\System32\drivers\etc\hosts).
View 2 RepliesI get how to do it, and i have been to [URL] before. My question is about what doing that does, is it possible to reverse it? What if you do not know where your program will be, and you are just testing it for now? Is there any way for it to "find" your program, or an easy way to edit where it is opened? For that matter, is it possible to tell if the file has been associated already, is it an issue to try and reassociate? Finally, how can you set the .ico file it uses?
View 1 RepliesWhy can't i install extensions visual basic express 2010? i downloaded the file from Microsoft(.vsix) in another PC, then when i arrived at home i tried to install it, but it tells me that i have no programs installed that the file will be added. do i need to register my vb express first? it's currently running on a trial version.
View 2 RepliesIn an other post of mine, a discussion was going on to change the extensions of mdb so user does not recognize it as Access DB (this is important for me) I tried this and changed extension to xrd, ran the application and it gave error. Off course it could not find my mdb. How to handle this? Do I need to make all the connections again?
View 5 RepliesHow is it possible to delete all the items from a ListBox that have the same extension? This is in particular to video files that have have extensions of .mpg, .modd and .moff. I can populate the ListBox with just the .mpg files but I would like to know how I can remove the other file types should I put the whole lot in.Also, presumably using similar coding, it it posssible to highlight all lines with a particular extension?
View 4 RepliesI currently have the following working[code]...
What I would like to do is expand the filter to include alternative file extensions (i.e., ".rar", ".7z", etc)
I am creating a program which can store files, and I display their names in a list box, with their contents in another list box. My program can read the file names but has the file extension ".txt" added to all of them, meaning that the program cannot read the contents. How can I remove ".txt" from them? [code]
View 3 RepliesHow would I loop through a directory recursively, and get a list of ALL file extensions used, not duplicating any of them? It could just output to the debug window. Or perhaps write to the database and have the database filter the duplicates. So it would be great to see...
[Code]...
I want to Make A control Panel Extensions I'm using VS2005.net Windows Xp professional Edition
View 6 RepliesI'm using the following code.
Dim dir As New IO.DirectoryInfo(FolderBrowserDialog.SelectedPath)
Dim files As IO.FileInfo()
Dim filename As IO.FileInfo
If (rbNoSubfolders.Checked) Then
[Code]...
I'm getting an "Illegal characters in path" error. How can I fix this?
Basically, I want to be able to say: here, I want to be able to chose my drive (in this case C:) and i want to be able to get the following extentions: .txt. Also i want it to list ALL .txt files in the C drive in either a textbox or listbox.
View 1 RepliesHow can I write this
Path = "C:"
For Each FoundFile In My.Computer.FileSystem.GetFiles(Path, FileIO.SearchOption.SearchTopLevelOnly, "FILE*.10") _
And For Each FoundFile In My.Computer.FileSystem.GetFiles(Path, FileIO.SearchOption.SearchTopLevelOnly, "FILE*.09")
'do code
Next My goal is simply to search for multiple file extensions. I cant use FILE* as my search parameter as this returns other files e.g FILE2012.10z which i don't want.
I have created a class containing a few string extensions, as follows:
Imports Microsoft.VisualBasic
Namespace Extensions
<HideModuleName()> _
Public Module Extensions
[code]....
just in case it's relevant to this, I'm using .Net Framework 2.0.Would I need to register something within the aspx page in order to use extensions? If not, is there another way to enable them?
I'm trying to delete all the files in the same folder that have the same name but different extensions, such as CurrentWallpaper.bmp, CurrentWallpaper.jpg, CurrentWallpaper.png, without putting them in a separate folder. How could I go about doing this? I tried doing
Dim bg As String = dir + "" + Login.UsernameTextBox.Text
Kill(bg + "CurrentWallpaper.*")
but it didn't work. PS: I would also like to use the same technique for loading the image as a background image instead of having to do this:
Try
If My.Computer.FileSystem.FileExists(Login.UsernameTextBox.Text + "/CurrentWallpaper.jpg") Then
Me.BackgroundImage = Image.FromFile(Login.UsernameTextBox.Text + "/CurrentWallpaper.jpg")
End If
[code]....
How can I filter on multiple file extensions when using IO.DirectoryInfo.GetFiles?
View 3 RepliesI made a library in C# and I've been told by people that one of mine methods don't work in VB.NET as extension [UR]
this is the method:
public static PropertyDescriptorCollection GetProps(this object o)
{
return GetProps(o.GetType());
}
I have started researching Reactive extensions and I would like to know how to do the following (ill try and keep it simple):
1) have a list of string (or any other type)
2) when an item is added to the said list, do something with it...
Guess im just kinda stuck where to start :/
I want to know how to create our own file, such as: (.Docx). If we opened the file in notepad the characters contained in the that's file could not understand, so i would like to know by what method of making the it's file? Is the file created and use encryption method or what?
View 7 Replies