File.Copy For Backup?

Dec 15, 2010

I am trying to do a back up of files and was needing to know how to do something like

[Code]...

View 6 Replies


ADVERTISEMENT

Backup Code ( Copy And Paste In Vb 2010)?

Nov 29, 2011

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

Backup Utility - Copy Modified Files

Oct 29, 2009

Im trying to create an incremental backup utility on a web form using vb.net for code behind.

So far i can copy files from directories including sub directories and that part works fine, my main problem is copying only the most recent / modified files to the backup folder, currently it is moving all the files each time.

Below is my code so far.

CODE:

View 5 Replies

Program To Backup Database And Copy To Another Comp

Nov 8, 2010

i have i problem when making some program to backup database sql server 2000. i have task to develop program with requirement like this:

1. this program must backup database from sql server 2000 (success).

2. this program must compress the backup to the smaller size (Not success,because the backup file is more than 3,9 Gb. i am using SharpZip Wrapper and not succes because the size exceeded.)

3.Copy the backup file or compress to another computer (Succes but take a long time because the size of file is more than 3,9 Gb. That's why I want compress the file.)

any one can give me solution for compress large file with size more than 3,9 Gb. This file will continue to grow in size,so i need compress it so i can copy more quickly?

or any one can reference some freeware can do the task?

View 5 Replies

VS 2005 Make A Scheduled App That Will Backup(copy) Some Files At Specified Time/date?

Mar 18, 2009

How can i make my app execute some code at specified day/time (Day/minutes/secconds)?I need to make a scheduled app that will backup(copy) some files at specified time/date.

View 4 Replies

File I/O And Registry :: File Stream - Backup Program That Zips Files ?

Feb 9, 2009

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!

View 6 Replies

Check File Size And Take Backup And Re-create File?

Feb 26, 2011

Check file size and take backup and re-create file? I am using this function[code]...

View 4 Replies

Deterime Length Of Time It Would Take For File.Copy To Copy A File?

Aug 5, 2010

I have a program that uses IO.File.Copy to copy files from point a to point b. Its slow, which is fine because there rather large files. I was wondering if there is way to get an estimate time to copy a particular file(s).

Example: File a will take 1 hour to copy, File B will take 30 minutes to copy. Estimate Total Time: 1 hour 30 minutes.

View 3 Replies

Find SQL Version From Backup File?

May 18, 2010

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

View 1 Replies

VS 2010 Making Backup Up File

Oct 9, 2011

how to make a back up file using mysql xampp?

View 1 Replies

Batch File - How To Backup Mysql Database

Feb 19, 2010

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.

View 1 Replies

Restore Backup File Created On Server To Another One

Oct 12, 2009

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?

View 1 Replies

Backup MSSQL Database Using Save File Dialog?

Jul 14, 2011

How can i backup my mssql database using the save file dialog?

View 5 Replies

VS 2010 Improve A Button So The User Can Make A Backup Of The *.mdb File?

Nov 14, 2011

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

View 3 Replies

.net - System.IO.File.Copy Doesn't Copy?

May 27, 2011

I have a weird behavior when trying to copy a file with System.IO.File.Copy. The file never gets copied. More than that, the call doesn't generate an exeption!

I am using VB.NET, Framework 3.5. I'm trying to copy in C:Temp and I do have the privileges. Or at least I used to...

View 2 Replies

How To Load A .bak File Of Database Backup In Sql Server 2005 Using .net 2008 Windows Application

Mar 12, 2009

how to load a .bak file of database backup in sql server 2005 using vb.net 2008 windows application?

View 5 Replies

File I/O And Registry :: Getting An Alternative To The File.Copy Method Of Copying Files?

Mar 27, 2009

I've got an app which uses a background worker to copy files. It works fine but some files are quite large and it "appears" as though the app isn't doing anything. Is there an alternative to the File.Copy method of copying files so I can report on the progress of individual file copies, like the percentage complete?

View 19 Replies

File I/O And Registry :: Load - Read - Locate & Copy Text In A File?

Aug 12, 2010

Before I begin I would like to mention that I am not a noob in VB, it's just I've never had to do anything this complex before. Basically what I want is to have a program that you can load a txt file in, have it copy key words, and paste it in a textbox so I can use it later on. So in this text file, there is a bunch of info, but I am only needing a certain part. Here is an example of a text file (actually a .dat file, but is easily read):

[Code]...

View 3 Replies

File Info - Pass Delete And Copy File Method On A Button?

Jul 22, 2011

i am very new to VB. I am working on file operation such as show files, copy file, delete file, show current directory, rename folder, make folder. My problem right now is with delete and copy file. I have a method of delete and copy but i dont know how to pass this method on a button.

[Code]...

View 8 Replies

Error On Global.asa - Central Place To Put Routine - Instead To Copy It Into Every .vb File That Belongs To Each .apsx Code File

Jun 2, 2012

I am wondering if Global.asa can handle a procedure like this:

Protected Sub errore(tipo As Int16)
'Response.Write(Err.Description) 'or your own custom error message
Dim msg As String

[CODE]...

The idea is to have a central place to put the routine in instead to copy it into every .vb file that belongs to each .apsx code file.

View 4 Replies

File I/O And Registry :: File Copy To Server Of Differnt Domain?

Apr 24, 2009

I have a program that I copy a file from one server to another. This has been working well if the servers are on the same domain.I now need to copy a file to a server on a different domain. If I were to do this manually it would prompt me for my username and password.

I don't see any way to put a username and password with doing an IO.File.Copy. Is there a better way to do this?IO.File.Copy(strSource, strDest)

View 1 Replies

VS 2008 Displaying File Copy Progress (copying File 1 Out Of 10)

Aug 11, 2009

Here's my

[Code]...

During the file copy, Label2 isn't being updated. In fact, my whole form goes non-responsive. How can I fix this?

View 5 Replies

Copy File To A File Share On Remote Machine

Aug 14, 2009

I am developing an Application in VB.Net 2.0. I have a module which would copy files from the Local Machine to a shared folder on remote machine. This shared folder on the remote machine is an authenticated folder. So, after searching on the Internet I found the following piece of code.[code]Another point to note is that when I connect to the File Share using Windows Explorer and then try to execute the application, it works properly.I am not sure why I am getting the error when I do not connect to the Shared Folder using Windows Explorer.Do I have to set some property so that the Credentials passed in the authentication are used.I also checked some posts that suggested setting up Mapped Drive to the Shared Folder on the Local machine and then to copy the file using IO.File.Copy function. However, I cannot use this as this Remote Folder should be only accessed through the application and not in any other case by the User. The users will not even have the credentials to this remote Server as it will be configured by the admin.So, Is there any way in which I can set this up and transfer the files from local machine to a remote shared folder?

View 3 Replies

File Copy A Certain File In Server And It Says QuoteLogon Failure

Jan 10, 2009

Im trying to file copy a certain file in our server and it says QuoteLogon failure: unknown user name or bad password. this is my code fileCopy (OpenFileDialog1.FileName, "\\SERVER\System\PictureDataBase\" & txtSurname.Text & ".jpg")

View 2 Replies

Impersonation - File.Copy / File.Move With Different Credentials

Apr 2, 2009

Ideally I'd like to be able to copy/move between an accessible folder on my local drive and a network share that I don't have permission to access (but the application would). I am using impersonation to give me access to the files in the network share but using System.IO File.Move or File.Copy forces me to use the same credentials for each location. Is there a way around this?

View 2 Replies

Prevent File Copy Where Source And Target Are The Same File?

Sep 14, 2011

In my program I allow the user to copy a file from one folder to another. If the file already exists in the target folder I want it to be overwritten.

All that works just fine - I'm not asking how to copy files.

But here's an example

Source file is:-

\SomeMachinesomeFolderfile.xyz

Target is:-

P:file.xyz

This might at first look like two separate files but in this case P: is mapped to \SomeMachinesomeFolder so the source and the target are actually the same file and the file copy will obviously fail.

Of course I want it to fail but my problem is that the windows generic error message seen by the user is not very helpful. It says something simple like "... can't be copied because it's busy". If the user isn't very bright he doesn't realize he's selected the same file both as source and target and he doesn't understand why it's busy.

What I want to do is detect in advance that the source and the target are the same file and display a more meaningful message to the user and not even bother trying to copy.

So, is there a way to detect that

\SomeMachinesomeFolderfile.xyz

and

P:file.xyz

are actually the same file?

View 8 Replies

Recursive File Copy Based On File Extension?

Oct 20, 2010

Recursive File Copy based on file extension. I have a single root folder that contains numerous folders that contain a few files that I want to extract. For this example, lets state that I want to copy all �txt� extensions and put them into a repository folder.

Example:
\root
\root\Folder1\
\root\Folder1\abc.txt

[code]....

View 6 Replies

VS 2008 - File.Copy Basics - Copying A File

Dec 14, 2009

I cannot do the following:

File.Copy(Application.StartupPath & "wait.exe", "%APPDATA%WAIT.EXE")

Can someone remind me how I got about copying a file to that location?

View 1 Replies

VS 2008 File.Copy And Fast File Copying?

May 22, 2012

So, I have a task where I need to basically copy about 600,000 PDFs, some of which can be 5-6 MBs from one network fileshare to another network fileshare on another pc.Now, I crawled through the directories, sub-directories etc etc and created what I call a Filename/Filepath Database lookup table. This table contains the name and the unc fileshare path of each file which comes in handy.I have used Multi-threading and File.Copy to "copy" the files and I getting about 45K files per 4 hours which I need to be significantly faster then that and I am seeing performance degrade over time

View 1 Replies

Writing File/Folder Sync Prog, Result Text Boxes Not Updating Untill After All File Action Is Done Even Though Update Code Comes Before Copy?

Apr 12, 2011

I am working on a program using VB.Net 2010 which will enable me to setup groups of files & folders for back up with syncing capabilities etc. I have a concept program which is based on some sample code I found out in one of the VB.Net forums. I have modified it from a command line based program to a form based program. At the moment I consider this code to be a "concept" program which once I have the various copy/sync routines developed and debugged will be integrated in to another program I wrote for
creating "Back Up" groups to automate the process. There are some 3rd party programs that do similar things that I want to do such as Microsofts Sync Toy, but none of them offer the grouping and exclusions options that I am going to program in to this backup/sync program.

So here is my problem, I have the included code taking two folders, a source and a destination, and copying everything from the source to the destination. It will skip over any unchanged files/folders and will delete anything found in the destination folder that is not found in the source folder and it will update all files in the destination folder that have a newer version in the source folder. In other words it will mirror image the source to the destination but will be smart enough not to copy unchanged items from the source to the destination thereby saving a lot of time. The sync part of the program is working fine, the displaying of the progress and results is not.

[Code]...

View 2 Replies







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