473,224 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

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 2848
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****@discussions.microsoft.com> a écrit dans le message de
news:BA**********************************@microsof t.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****@discussions.microsoft.com> a écrit dans le message de
news:BA**********************************@microsof t.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****@discussions.microsoft.com> a écrit dans le message de
news:EE**********************************@microsof t.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****@discussions.microsoft.com> a écrit dans le message de
news:BA**********************************@microsof t.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
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...
6
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...
5
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...
4
by: Bishop | last post by:
For example the files in a computers windows directory and profile directory that the application is running on.
5
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...
5
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...
6
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...
3
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...
3
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. ...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.