Change Txt To Any File?
Jan 15, 2010
in my program have 2 textbox-textbox1 and textbox2. 2button-Open and Save. and 2radio button-csv and shp. the situasion is when user 'Open' user will select any file(e.g:hello.txt) and it works-C:\Program File\Document\hello.txt display on textbox1. Now if i want select radio button whether csv or shp the output will display on textbox2 and change the C:\Program File\Document\hello.txt to C:\Program File\Document\hello.csv(if i select csv).
View 1 Replies
ADVERTISEMENT
Mar 20, 2010
So, I've got a text boxes which loads up a content from a XML file, usually a numbers I want a button, so when I will change the numbers on the text box, the data in file will change as well, in other words a save button That's how the data is being taken from a file
[code]...
Those EditPaths, Playa2 etc are making up a path to a file
View 20 Replies
Jan 13, 2009
I need to be able to change a path inside a document ( a config file to a program) to the current directory of the application im creating in VB so the text file looks something like
Quote:
something=234
blabla=io
ServerRoot=C:Server
i need to change c:server
View 2 Replies
Apr 17, 2012
I am using net 2010 net framework 2 & w7 In windows explorer I want to move or rename a file but I get a windows message with a heading "File Access Denied" you need administrator permission to do this In my vb code I want to move the same file but get an error, the security on the file is "Read & execute" and "Read" How do I detect this before the code for moving & also set the permissions so I can move it with vb code.
View 6 Replies
Oct 14, 2008
On an xp system using VB 2008 exprees, I'm trying to write code which will change a file's permisions when run from a non admin account. To do this I need to now how to run the code as an administrator. I've got the code to change permissions working, I just don't know how to run it with an administrator's credentials. The code is:
Imports System.IO
Imports System.Security.AccessControl
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
[code].....
View 1 Replies
Jun 23, 2010
How can i change a RTF file to a HTML file in VB.NET
View 1 Replies
Feb 4, 2012
I'm using Visual Studio 2010 / VB / dot net 4.0, and I have a drop-down menu in my left column that switches resource languages for the end user. It reads like this:
--------English ------- <<- Engish is always the default top language option
French |
Spanish |
[code].....
View 2 Replies
Mar 19, 2009
I have a txt file (lets say 'C:myfile.txt') which has a specific format.How can I see what is the exact format of this file? And how can I change it to a DOS format? I want to make an import into a DOS program and the I have serious problem with code page.
View 1 Replies
Jun 1, 2011
I have close to 10,000 serverside pages, all of thse use the same stylesheet. I have created a new serverside page which is like a dynamic menu system to help find specific pages from the existing 10,000 pages quickly and easily.
The problem is, that if the serverside pages are accessed the old way using the old menu system, they should retain their old stylesheet. however, if they are accessed via the new menu system, they should use a new refreshed stylesheet.
View 4 Replies
Oct 20, 2009
Is it possible to change few bytes in a file to make unreadable or is it necessary to change each single byte?
View 1 Replies
Jun 18, 2012
I need to write a program to change the extension of all the files in a folder from a certain extension to another.[code]...
View 10 Replies
Jul 25, 2010
I'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 Replies
Jul 8, 2011
i'm using vb 2008 express edition and i'm trying to create a little software and i need to know how to change an extension of a file :like from myfile.rar to myfile.flv only to change the extension,not convert it or anything. and also can you tell me how to terminate a process like: microsoft paint or firefox?
View 8 Replies
Jul 31, 2010
Is there any way to change the icon on a .exe file ?
View 1 Replies
Jun 23, 2009
My text file look like this:
4.5 28 Red (T1 ) [1 12.86 53.8] X Y 198452 -1309 | 11.0 28 Red (2 13.10 04.0) [T1 ] 130611 2948 229111 28275
1.5 28 Blue (T2 ) [1 07.06 59.1] X Y 190456 39339 | 6.5 28 Blue (2
[code].....
View 13 Replies
Aug 15, 2011
Im trying to change the title of a mp3 file but it doesnt work ans also error An attempt was made to move the file pointer before the beginning of the file pops up at file seek ive comented it out (ie. '///###@@) in the WriteID3v11() sub
[Code]...
View 2 Replies
Jun 17, 2009
I have a values like this:
129111 33775
123111 26775
118611 30275
114111 30275
[Code]...
every X and Y value must be plus with 2.54. if user enter column=5 then the first 5 velues for X must be change Y remain unchange and for the next 5 values the first Y value will be change..
View 3 Replies
Jun 30, 2009
I have a combination of lines like this in my text file.
X200876Y-140576
X220177Y124676
X-178377Y-124076
[Code]....
How can i make it if X and Y contain "-" then it should insert "." after count 4 if not it should enter "." after count 3?
View 3 Replies
Sep 29, 2011
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 Replies
Feb 11, 2010
id like the .vb file to be in the same folder as the rest of my files.. but for some reason it's in another folder and i can't change the filepath.
View 1 Replies
Nov 15, 2011
manage some equipment which adds a new record to a csv log file every 15 mins. Whenever the value in the fourth column in that log changes to or from 0 (regardless of what it changes to or from), I want to fire an email off (two different emails - one for the value changing to 0 - i.e. turning off, and a different email for it changing from 0 - i.e. turning on). Can anyone point me in the right direction for some code for that?
View 2 Replies
Aug 11, 2009
am learning some VB 2008, and I am stuck, How would I go about changing some hex values in a file that I open from my OpenFileDialog?I don't want to actually SHOW any hex code, I justneed say 04 changed to 01,02,03,04,05,06,07,08,etc. They are at 0x0001B876... I just want a user to be able to chose an option from my combobox. I know how to say ifcombobox.selecteditem = "04"
View 11 Replies
Mar 2, 2011
I am fiddling around with the following code. However, I need the file name restructured from the C:MY FOLDERMY FILE format to the C:\MY FOLDER\MY FILE format. How can I do this?
Public Class Form1
Private Sub TextBox1_Clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.Click
'OpenFileDialog1.Title = "Please Select a File"[code]....
The code is rough.I am just testing some things out.
View 1 Replies
Jan 25, 2012
I have hundreds of .pdfs that I downloaded that have names that are not helpful at first glance. Part of the download was a 'key' that lets me know which file belongs to which person (I have this in excel). I'd like to know if there is a vb script out there (or one I could get help writing) that would look in a folder and rename the files based on the accompanying spreadsheet.
View 5 Replies
May 5, 2012
I want my program the be able to calculate the CRC32 of a file and to change it. I already have the CRC32 calculation class now I wanna know how to make it change the value.
CRC32 calculation class:
Code:
Private crc32Table() As Integer
Private Const BUFFER_SIZE As Integer = 1024I
[Code]....
View 1 Replies
Jun 16, 2009
Is there a way to change ACL of a file or folder that disalows you access to your username and is readOnly... Like to use the built in administrator account or a support account, without having to go into safemode.
View 3 Replies
Jul 30, 2011
I have a vb.net 2008 desktop application to make changes to it. Since the production database will be changing within a month, I know that i need to change the .net remoing.
1.I change the configuration manager file (app.config) in debug mode to point to the 'new' test database, however the changes are not pick up. The application is still pointing to the current database. Thus can you tell when what kind of files.I need to change so that this application picks up the 'test' data base?
2. After I have tested the changes that need to be made, I will need to deploy the changes. Thus i am assuming that I will need to do something different so I can put the application changes into production. Thus, can you tell what kind of extra dlls,exe, xml, and other files I will need to include in the deployment package? Is there anything else I need to do in the deployment package? This application uses .net remoting to have the database connect to the various proejct files in the entire solution file.
View 1 Replies
Jun 21, 2010
I need to holds the common settings for all of the apps ona server (UNC path). Previously I used an ini file on the server and the application was told to look there via a command switch.
I understand that I'm trying to use .net in an old fashioned way by not packaging it for web update & delivery but that's a contraint of the architecture I need to work with.
Is there any way to force my application to use the application.exe.config file from a set location rather than the user data area that .net automatically writes it to? Even if not on a server path, then in the application directory where we can push update it?
View 3 Replies
Dec 4, 2010
I use Vb.NET from VS 2010 I use a SQL File to run a script, when changes to the database should be done.This works fine for me. The SQL File is in my project and marked as embedded file.Now I run into an issue. I have to change the user name, when updating a Trigger or SP (for complete information: I use mySQL and 3rd Party Script component)So, I thought, I write the embedded file into a Temp-File, make the changes to the file, run the temp file through the script component and then delete the file.
View 2 Replies
Apr 29, 2009
I'm trying to save a files save date, modify that file and then restore the file back to it's original date. I can't get it to work, I've tried it several ways and cannot get it to work.
My code so far is
origdate = My.Computer.FileSystem.GetFileInfo("inspection").L astWriteTime.ToShortDateString()
' changing file content here
System.IO.File.SetLastAccessTime("inspection", origdate)
View 2 Replies