473,729 Members | 2,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there a way to copy (backup) open or protected files using VB.N

For example the files in a computers windows directory and profile directory
that the application is running on.
Jul 21 '05 #1
4 2882
Not sure what you mean by "protected" ?
It's just no different than usual (ie. you can copy if you have the
appropriate rights, if the file is not exclusively lock etc...).

Have you tried your scenario ? What is the problem you have (error message)
?

Patrice

--

"Bishop" <Bi****@discuss ions.microsoft. com> a écrit dans le message de
news:BA******** *************** ***********@mic rosoft.com...
For example the files in a computers windows directory and profile directory that the application is running on.

Jul 21 '05 #2
Sorry, yes, I'm referring to the exclusive lock such as the windows registry.

Yes I've tried it with VB6/FSO and with VB.NET. I don't have the code
infront of me to see the error message but it indicates that it can't copy
the file because it's open.

I'm guessing that there is some way to do this because backup software is
able to do it.

"Patrice" wrote:
Not sure what you mean by "protected" ?
It's just no different than usual (ie. you can copy if you have the
appropriate rights, if the file is not exclusively lock etc...).

Have you tried your scenario ? What is the problem you have (error message)
?

Patrice

--

"Bishop" <Bi****@discuss ions.microsoft. com> a écrit dans le message de
news:BA******** *************** ***********@mic rosoft.com...
For example the files in a computers windows directory and profile

directory
that the application is running on.


Jul 21 '05 #3
Not sure but they might save a backup copy that is maintained by windows. As
this version is not live it should work...

Unless writing a backup software, my personal preference is to delegate this
to a backup software rather than to add backup capabilities into a non
backup related application...

Sorry for the poor help...

Patrice

--

"Bishop" <Bi****@discuss ions.microsoft. com> a écrit dans le message de
news:EE******** *************** ***********@mic rosoft.com...
Sorry, yes, I'm referring to the exclusive lock such as the windows registry.
Yes I've tried it with VB6/FSO and with VB.NET. I don't have the code
infront of me to see the error message but it indicates that it can't copy
the file because it's open.

I'm guessing that there is some way to do this because backup software is
able to do it.

"Patrice" wrote:
Not sure what you mean by "protected" ?
It's just no different than usual (ie. you can copy if you have the
appropriate rights, if the file is not exclusively lock etc...).

Have you tried your scenario ? What is the problem you have (error message) ?

Patrice

--

"Bishop" <Bi****@discuss ions.microsoft. com> a écrit dans le message de
news:BA******** *************** ***********@mic rosoft.com...
For example the files in a computers windows directory and profile

directory
that the application is running on.


Jul 21 '05 #4
Greetings Bishop,

Take a look at the System.IO Namespace, in special the File object.
There's a shared method Copy that copies one file to another location.

However it doesn't make bulk copies (ie, copy multiple files). for this
you should start thinking about multi-threads, in order to speed up, or
not (ie, the same way Windows Explorer does).

As for "exclusive locked" files, there's not much to be done. Not even
Backup Applications can open a file that's already open with an
"Excluside Lock". (Please, don't take my word on it, try it :)

Regards,

Paulo

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
530
by: durumdara | last post by:
Hi ! I have some backup files on a server farm. I want to store these local backup files on a backup file server for "safety's snake". These files are compressed zip files with 12 character length password. But my system admin asked me, how can I improve the safety of the copy operation, and the storing (now I use Samba share to store these files. I map the SMB share on the client, copy these files, and unmap SMB).
6
5195
by: Charles Morrall | last post by:
I have no experience with DB2 as such, but I've been tasked with configuring backup of a server running DB2 v8 on Windows Server 2003. I do have some experience with backups in general though. The backup software I'll be using is Backup Exec 10, but Backup Exec doesn't have a specific agent for DB2, as it does for SQL and Oracle. The supplier of Backup Exec claims I can use the Open File option of Backup Exec to backup DB2. I find this a...
5
2379
by: Deano | last post by:
I'm experiencing bloat problems when I restore my backup files. Users can take a look at the reports of any previous backup without having to ensure they have a backup of their current data - this means I have to do a silent backup of the existing database, restore the selected mdb, then restore the silent backup when they are finished viewing the restored data. To the user it appears that they are are just able to see reports relating to...
4
265
by: Bishop | last post by:
For example the files in a computers windows directory and profile directory that the application is running on.
5
3112
by: kebuchan | last post by:
Hi all, I know this is possible in Oracle but has anyone done it in DB2 and could you maybe direct me to some documentation or let me know how I would go about doing it? In the oracle world you would basically need to do the following: 1. Set tablespace to backup mode 2. Copy associated data files to new directory/system
5
3596
by: hula | last post by:
Hello i'm looking for some tool to backup some data but as i don't seem to find one that fits my needs i'll start implementing it by my own. Here's some funktions i need to have: - Backup between 1,5 to 2 million files/direcorties (150 to 250 GB) - Backup all to a 'one-file-archive'. This could be a zip file e.g. on an other disk or a networkdrive. - Backup only modified files (date/size)
6
2122
by: Samuel | last post by:
I am trying to write a small utility program that backs up a list of files/folders I need to back up all files including those that are opened, is ther a way of doing that? (it seems that backup programs are doing just that) Thank you, Samuel
3
5875
by: rubbishemail | last post by:
Hello, do you know of any way to copy locked / opened files under win xp? I know there is something like "Volume Shadow Copy" but I don't know how to use it. Maybe someone already has a python solution? Many thanks
3
12859
by: maheshkadam | last post by:
Hi friends I am new to perl so please guide me. I have one application which created backup log file every day.But it appends that file so you can see logs for different day in one file only. My requirement is to copy backup log for the specific day (yesterday) and write in other file. That file will be mailed to admin for ready reference. So here is some text from that log file
0
8917
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9281
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8148
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2680
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.