473,386 Members | 1,673 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,386 software developers and data experts.

locked file


i have a code that backsup file from src to dest.
Now if some of the files are locked , i need to skip those files..
I was trying to use fctl module but it can be used only in unix i
suppose.

is there anyother way? i am using windows os.

Jul 27 '06 #1
3 1755
Kirt wrote:
i have a code that backsup file from src to dest.
Now if some of the files are locked , i need to skip those files..
I was trying to use fctl module but it can be used only in unix i
suppose.

is there anyother way? i am using windows os.
What does locked mean in this case? No read permissions? In use by
another program?

I haven't used windows in a long time, and I wasn't aware that one
could lock files in it.

Peace,
~Simon

Jul 27 '06 #2
By locked files i mean Outlook PST file while Outlook has it open

Simon Forman wrote:
Kirt wrote:
i have a code that backsup file from src to dest.
Now if some of the files are locked , i need to skip those files..
I was trying to use fctl module but it can be used only in unix i
suppose.

is there anyother way? i am using windows os.

What does locked mean in this case? No read permissions? In use by
another program?

I haven't used windows in a long time, and I wasn't aware that one
could lock files in it.

Peace,
~Simon
Jul 28 '06 #3

Kirt wrote:
By locked files i mean Outlook PST file while Outlook has it open

Simon Forman wrote:
Kirt wrote:
i have a code that backsup file from src to dest.
Now if some of the files are locked , i need to skip those files..
I was trying to use fctl module but it can be used only in unix i
suppose.
>
is there anyother way? i am using windows os.
What does locked mean in this case? No read permissions? In use by
another program?

I haven't used windows in a long time, and I wasn't aware that one
could lock files in it.

Peace,
~Simon
So what happens when you try to back that up while outlook is messing
with it? What are you doing to back it up? Copying?

If all you want to do is skip it... can't you try to copy it and then
when that doesn't work just skip it?

Jul 28 '06 #4

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

Similar topics

3
by: Cameron | last post by:
How can you tell if a file is locked/being written to by another process? -Cam
4
by: hkappleorange | last post by:
I ued this code to connect to a mdb file A = New OleDbConnection( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=C:\Inetpub\wwwroot\ASPX\Authors.mdb" )
10
by: Martin Ho | last post by:
I am running into one really big problem. I wrote a script in vb.net to make a copy of folders and subfolder to another destination: - in 'from.txt' I specify which folders to copy - in...
4
by: Qwert | last post by:
Hello, I have a listview with an image list. After dispoing the images and the image list, the bitmap files remain locked: REM Create. objImage = Image.FromFile(strBmp) If...
5
by: cmay | last post by:
The only examples I have seen on how to check if a file is locked is to try to open it a catch an exception. MS has stated that you should never use error trapping in this manner. Is there no...
6
by: elake | last post by:
I found this thread about a pst file in Windows being locked and I am having the same issue. ...
6
by: ljstern | last post by:
Hello. I am using MS Access 2003 with XP/pro. I have a form that has the following properties set through the property sheet: form: AllowAdditions = False CartridgeID field: Locked = True ...
0
by: Dmitry Teslenko | last post by:
Hello! I use some script in python 2.5 from vim editor (it has python bindings) that updates some file and then launches another program (ms visual studio, for example) to do something with...
0
by: Gabriel Genellina | last post by:
En Tue, 13 May 2008 11:57:03 -0300, Dmitry Teslenko <dteslenko@gmail.com> escribió: Is the code above contained in a function? So all references are released upon function exit? If not, you...
11
by: fniles | last post by:
One of our application uses VB6 and Access97 database. Another application uses VB.NET 2005. This morning for about 15 seconds when the application tries to read either a query or a table from the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.