Making Certain File Extensions?

Nov 5, 2006

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 Replies


ADVERTISEMENT

Create Your Own Extensions And The Method Of Making The File?

Jun 18, 2012

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

SaveAs Dialog And Extensions - Allow The User To Select A Filename To Save A File Either As A Doc File?

Jul 1, 2011

I'm using the FileSaveAs dialog control to allow the user to select a filename to save a file either as a doc file, an rtf file or a pdf file (that part was easy).However, after a bit of testing, it seems that the file extension doesn't automatically change when selecting the different file types.If the filename in the dialog is Foo.doc and I select FileType *.pdf and click "Save", my app still tries to save the file as a doc type.Virtually every other MS app automatically changes the extension to match a selected file type from the Office Suite to Paint. here's my code:

Dim dlg As New SaveFileDialog
dlg.InitialDirectory = m_sReportFolder
dlg.FileName = sProjectName & ".docx"[code]......

View 7 Replies

Just Show The File Extensions?

Oct 8, 2009

I 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].....

View 8 Replies

Open File With Different Extensions?

Aug 26, 2011

I 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 Replies

Editing Files With No File Extensions

Jan 13, 2009

the 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 Replies

Associating File Extensions With A Program?

Oct 12, 2009

I 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 Replies

How To Remove File Extensions In A List Box

Jun 23, 2012

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 Replies

Multiple File Extensions With GetFiles()?

Nov 11, 2011

I'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?

View 4 Replies

Scan Computer For Certain File Extensions?

Mar 19, 2009

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 Replies

Search For Multiple File Extensions?

Mar 12, 2010

How 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.

View 7 Replies

VS 2010 Getting Multiple File Extensions

Oct 20, 2010

How can I filter on multiple file extensions when using IO.DirectoryInfo.GetFiles?

View 3 Replies

Registry Edits And Icons / File Extensions

Aug 12, 2010

Inside the program I have a text box in which a user puts in the filepath to a textfile that the program then uses as a series of commands to perform tasks. This works perfectly, however what I would like to to do to make my program faster is associate the file extension .gam with the program, so when a user clicks a .gam file it opens the program and automatically sets said file's location into the text field, as opposed to using the browse button I added and browsing to said file everytime they run the program.

Through this a user could then make a shortcut to said .gam file and run it right from their desktop, as opposed to rummaging around in folders and whatnot. At the moment my method has been thus, I have 2 folders of importance I have archived with the .exe, Gambits Pro.exe, these are: Gambits, and Control, inside of the Gambits folder is the default storage location for .gam files, as when you click the browse button its default directory is that folder. I have also added a few example files in said folder for a user when they download the program.

[Code]...

View 1 Replies

Display The Contents Of The Bookmarks Folder Only Without The File Name Extensions?

Jun 3, 2010

Instead of creating a listbox to hold the names of one's favorites, I've made it so when you add a bookmark it adds it under the directory (yourusername)/bookmarks. (yourusername) is represented by login.usernametextbox.text. Now I've added a filelistbox to the form and want it to display the contents of the bookmarks folder only without the file name extensions. Just the title. Then when a user clicks on the title it navigates to that specified file by opening a new instance of a browser form. Here's what I have so far:


Private Sub Bookmarks_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
bmarks.Path = Login.UsernameTextBox.Text + "ookmarks"
End Sub[code]....

View 1 Replies

VS 2008 Folder Options - Hide Extensions For Known File Types?

Feb 9, 2011

it's possible with vb.net code to show or hide extensions for known file types ? this is a folder option for the new windows 7, wich allow the user to show or hide extensions for files.

[Code]...

View 1 Replies

Making A File That The User Doesn't Have Access To And Changing The Location Of The Configuration File?

Jun 25, 2011

on my program i have an activation in it and in order to activate the program you need to enter a code that is stored in the settings. so i was looking through my computer and i found the programs config file. and so I opened it and i found all of the codes for the activation. I need to find out how to make the file so the user doesn't have access to it and then how to move it to a more hidden place in the C: drive.

View 3 Replies

Making A Game In Which The File Stream Gets A Certain File(lets Say A.txt)?

May 29, 2011

i am making a game in which the file stream gets a certain file(lets say a.txt) and it reads it, if it has certain values stored in the file it returns boolean(this is a function), then a sub procedure writes to the file using a streamwriter and a filestream using the same file. I am having problems, sometimes visual basic says that another process is using the file, this is before i closed the filestreams and the streamwriter or streamreader, then it gives me errors when i close the files, it tells me that it can't access a file that is already closed, i thought the filestream gets the file and lets the streamreader or streamwriter read or write to the filefound out the problem?

View 2 Replies

Save File Extensions - Save/open Dialog Wont Show .GDL Files Unless Select "all Files"?

Mar 22, 2011

im used to C programming.

Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveAsToolStripMenuItem.Click
timedate.Stop()[code]......

The problem is that if I save a file I get "myfile.GDL" if I overwrite that I get a new file "myfile.GDL.GDL" ect.the other problem being that the filtering in the windows save/open dialog wont show .GDL files unless I select "all files".

View 6 Replies

Creating IE Add On (extensions)?

Aug 18, 2009

can i create IE extensions with vb.net? and if so where do i start?

View 9 Replies

Get All The Extensions In A Directory?

Nov 14, 2009

How can I able to get all the extensions in a Directory. This is for vb.net windows application.

View 3 Replies

Making A Stand-Alone EXE File?

Feb 11, 2012

I'm currently using Visual Studio 2010 to make a Visual Basic project. I'm trying to make a standard .EXE file for distribution but everytime I go to publish, I keep seeing it make a Click Once application.Is there a way to complete and build a project in VStudio 2010 without making it as a Click-Once application?

View 1 Replies

Making An Array Through A File?

Dec 1, 2009

is there a way to make an array but instead of listing the things yourself, you open a text file with a bunch of words and use those?

View 3 Replies

Making An Exe File Into Resources?

Oct 16, 2009

I need to some how integrate 2 .exe files, and 1 batch file into my project. I don't like them sitting out in the open, and this will look neater. What I mean is, when I run a command like, "Shell("cmd.exe /C Ping " & TextBox1.Lines(26))", and I have a .exe named ping in the program directory, it will open that console executable, and then to ping etc. I want to somehow pack the .exe and batch with the program.

View 1 Replies

Making And Checking For A File

Jul 22, 2010

I would like to make a simple application that allows to make a file or if it already exists displays a error. This is the code a use. But the problem here is that it does not always shows the error. Code:

View 2 Replies

Generics Versus Extensions?

Nov 8, 2009

This 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

View 10 Replies

IDE :: Can't Install Any Extensions In VS 2010

May 3, 2010

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."

View 4 Replies

IEnumerable Extensions Of Sortedlist?

Aug 8, 2011

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 Replies

Plugins And Extensions For A Vb Application?

Mar 9, 2010

Firstly, 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.

View 1 Replies

Using Getfiles With Multiple Extensions?

Nov 17, 2009

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 Replies

VS 2010 Listview With No Extensions?

Jan 28, 2011

I 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 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved