VS 2010 Making Backup Up File
Oct 9, 2011how to make a back up file using mysql xampp?
View 1 Replieshow to make a back up file using mysql xampp?
View 1 RepliesI'm making a backup utility, and I need to know how to compress files. Is there a VB built-in utility for this? Also, if possible, can you tell me how to compress things to the maximum?
View 2 RepliesI have my desktop app, bound to an access database. I want now to improve a button so the user can make a backup of the *.mdb file.So i used this
If FolderBrowserDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
If FolderBrowserDialog1.SelectedPath <> "" Then
FileCopy("BDGRACIA.mdb", FolderBrowserDialog1.SelectedPath & "/BDgracia.mdb")
End If
End If
It works fine when i try the app from within Visual Studio. But when i install it it won�t find the database because it was installed elsewhere.Is there a way to control where the DB is installed and follow that route? Does this depend on the OS the app is installed? Or did I face the problem wrong and i should do something completely different with my button?
if we say i have a program and i want it to launch another .exe So the code of them being able to choose where it's located is "openfiledialog".But can i make it save the setting somehow, so it makes a small document/text-file thingy so it can read the locations from the file ?Or is there someway that the program remembers it ? I want it to ask for a file location first, and then next time pushing the button "start" it remembers the location ?
View 4 RepliesI am trying to convert watever is in the ComboBox to a number. So say I select "Grey" in the ComboBox I want it to show a number in the file i am making. My.Computer.FileSystem.WriteAllText(TextBox_ChooseFolder.Text & "" & TextBox_ItemID.Text & "-" & TextBox_ItemName.Text & ".sql",<ComboBox Number Here>, True)
I have tried
My.Computer.FileSystem.WriteAllText(TextBox_ChooseFolder.Text & "" & TextBox_ItemID.Text & "-" & TextBox_ItemName.Text & ".sql",If ComboBox1.Select = "Grey" Then "0" ElseIf ComboBox1.Select = "White" Then "1" ElseIf ComboBox1.Select = "Cream" Then "2" End If,True) ...I am new to Visual Studio!
Im making a class that represents a file. Im making a sub that reads data from one byte array into many properties. Now i need something that returns a byte array but only the first 4. Let me demonstrate because i can't think of a logical way of explaining. "something".substring(0,3) That would return a string containing "som" i need a function like that for a byte array
[code]...
Is there an existing function for this type of thing ? i've looked but didn't see anything that I understood.
I am writing a backup program that zips files. Using some sample code I have the following that creates a zip file. Problem is it does not get any subdirectories or files. Where am i going wrong?
Dim azFileNames() As String = Directory.GetFiles(SourceFolder)
Dim objCrc32 As New Crc32()
Dim zipStream As ZipOutputStream
[CODE]...
Alternativley, there is another component to the zipping dll that I could probably bypass the above altogether. It is: FZ.CreateZip(DestFile, SourceFolder, True, "", "") Where DestFile is (Output stream as system.io.stream). I'm trying to read all the files, directories, sub dir and files, etc from a specific location, let's say 'My Documents' into Destfile in which the FZ.CreateZip zips the file. FZ is FastZip which is from icsharpcode.net. They have c# examples, but that's greek to me. I'm trying to just learn VB!
I'm using vb2010 and i just finished doing all the GUI of my project. I usually just make a copy of my project folder and add it to archive. [project name] -[date]-[time].rar
is this an acceptable way of creating backups?
HTML
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles start.Click
Dim folderExists As Boolean
[Code]....
above i have a specific username in the little backup script i have created. in this section of the code, if the user selects this particular chkbox then hits "start" it backs up the above loacation to a "server" H.
how do i code it to automatically pull the username and place it where "godboubs" (aka the username) is?
Check file size and take backup and re-create file? I am using this function[code]...
View 4 Repliesi want to make a small application about backup so i want to make two buttons , the first one for choosing the source file and show in text box no(1) secondly, i mean a second button for place of new path for that file ( destination for backup file)
View 6 RepliesI'm been searching for a while for a way to create a vb 2010 program that automatically checks and compare the files you have at a specific location in your hard drive and backup/update them securely though a vpn when a button is clicked.
View 1 RepliesI am trying to do a back up of files and was needing to know how to do something like
[Code]...
I'm creating a small tool for our team that performs backups of our servers. The plan is to put the tool in a central location so that anyone can use it.I'd like to store, somewhere, the date of the last backup for each server. I was wondering if I could use an application settings (with Application scope) for this? Is this bad practice? If so, what's the best practice? XML? text file? registry?
View 6 RepliesWhat would be the best solution to find the version of SQL a backup was taken from?
I'm trying to find the first string to confirm its 2005, 8.00 for sql 2000 etc..I was trying to search using a file stream, but having problems searching for a string or group of bytes.
Is it possible through the use of a batch file, I'm trying this code:
mysqldump --host=localhost --user=root --password=nitoryolai -R hospital >E:wampetcdb-backuphosp.sql
Then vb.net will execute the batch file through s.d.p.s("b.bat")But it doesn't work, it only creates an empty .sql file.
I am using SQL server express 2005 as an backend. I created a backup file programmatically. If I use same server , then it restore the data successfully. however if we try to restore on different server, then it fails. and throw following message:
"The Backup set Holds a backup of a database other than the existing 'DatabaseName' database. RESTORE DATABASE is terminating abnormally."
On both server, Sql server instance name and database name is same. How can I resolve this error?
How can i backup my mssql database using the save file dialog?
View 5 Replieshow to load a .bak file of database backup in sql server 2005 using vb.net 2008 windows application?
View 5 Replieson 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 Repliesi 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 RepliesSo this is my code.
vb.net Private Sub Up_img()
Control.CheckForIllegalCrossThreadCalls = False
Try
Dim connection As New MySqlConnection("server=localhost;UID=root;PWD=;database=DB;")
Dim img_upload As String
[Code]...
How the logic is confusing. I was thinking of making a Variable that stores the time NOW and once the uploads 1 file, another variable will take the time and subtract it from the old time and times it by the number of files left. Or as you can see I have a little % calculation there and I could use that to calculate the amount of time left.Will that be consistent? Or are there other ways to achieve the result
I'm just wondering about making a downloader like IDM, we all know how it works right?well, just wondering it how did they implement like"Chopping / Splitting " files to download - They do have each a starting point.then merges the files?
View 5 RepliesI'm making a map editor but I have a few problems.I dont know how to make it that when you click the 'picMap' it will draw the tile-image on the x and y you clicked.
View 5 RepliesI'm making a simple HEX Editor with VB 2010. As a result I am trying to automatically leave a DataGridView cell after entering two characters and move onto the next cell
View 1 Repliesmake a window with a window. hit coded button/ and or image coded for a button. make visible. you can drag it around and make it work like you were using a window.
Update: the form 1 would have a image button that opens a form thats form would act like a window. like the ones you use when you open up a folder on your desktop. but it would minmize into the form 1 as an image button caching its info so you can pop it back up.
I have a PDF billing template that I need to put in the various information for customers and then send them the PDF's. I was looking into coding this with VB and saw iTextSharp mentioned a few times.
When I googled it I only found something on SourceForge and it was written in C#, where do you go for something in VB.net?
This is actually not really a question about vb, but about how to make a code.I'm making a RPG game and I want to make my character have "normal" movement. The problem is actually when I just hold down one of my movement keys (a, s, d, w) my character will jump out of the screen because it's going to fast. here is my movement sub:
Private Sub frmMain_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
'MOVEMENT'
[code].....
is there anyway u can make a ".exe" luanch without really knowing where the "user" u send it to have it installed. Well im talking about "World Of Wacraft" a game u install just like any other game.I wont this to luanch but i the users wich use this have the file/folder placed different places.Is there anyway to find this if it have been installed ?Ive been looking around but only found codes wich dident really work
View 6 RepliesWhere should i start? any tutorials out there? I only know the basics of VB and how to works.
View 5 Replies