Windows I/O Filter Driver | Bytes (2024)

Home Posts Topics Members FAQ

catoblepa80

Windows I/O Filter Driver | Bytes (1) 4 New Member

Good morning,
i'm developing an application for my company, in particular i have this need.. i have to copy a file from a place to another (tipically a network storage).
i have the problem when the file is opened, in particular when during copy the file is modified, how can i create a "snapshot" of the file?
Searching on internet i found that something can be done writing a filter driver for the file system.

thank you

Feb 1 '10 #1

3 Windows I/O Filter Driver | Bytes (2) 2899 Windows I/O Filter Driver | Bytes (3)

Banfa

9,065 Windows I/O Filter Driver | Bytes (5) Recognized Expert Moderator Expert

Are you saying that the file is modified by the copy but you wanted an exact copy or that you want to modify the file as you copy it?

I ask because you sound like you want an unmodified copy but Filter Drivers look like they are for transparently modified copies.

If you want an unmodified copy but are getting modified copies then you are probably opening one of the files in text mode and the other in binary to perform the copy. Also couldn't you just call CopyFile from the WIN32 API which should just do the job for you?

Surely you can just

Feb 2 '10 #2

reply

catoblepa80

4 Windows I/O Filter Driver | Bytes (6) New Member

i have a set of problems...

1) if the file is opened with exclusive access by another process?? how can i read it? the copy file or binary openin throws an exception
2) if the file is very big? like a database (edb, pst, access, mssql ecc, >= 1gb), i cannot hold it for a long time during copy. i need a copy "on the fly", like a lot of backup software do.

Feb 2 '10 #3

reply

Banfa

9,065 Windows I/O Filter Driver | Bytes (8) Recognized Expert Moderator Expert

1) You can.t. There is nothing you can do about it except try again later, exclusive access is exclusive access.

2) If you are sure no-one else is trying to access it copy it in small chunks, say 8 - 64k at a time. Whatever size you choose make it a binary power multiple of 512.

Feb 2 '10 #4

reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 4929

DB2 driver for windows

by: Philip |last post by:

Hi, i'am looking for a db2 driver for windows the DB2 servers runs on as400 if that makes any difference. Thanks, Philip

Python

1 2230

warnings filter?

by: rob |last post by:

In Python 2.3, this code still prints a warning (when run as a script, not from the interpreter). How do I get rid of the warning? I'd like to do it without passing command line args to python. import warnings warnings.filterwarnings('ignore') a = 0xffffffff Thanks,

Python

1 5124

OdbcConnection failed when using Windows authentication and impersonation.

by: Marlon |last post by:

I got the error message below when I try to open a connection with code: Dim connection As New OdbcConnection("Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ=C:\Inetpub\aesd") connection.Open() I am developing an asp.net application on Windows XP SP2 using Windows authentication and impersonation. Can anyone help? Personal I think it is because of a permissions/security problem

ASP.NET

2 1796

Filter Driver in VB.Net?

by: Charles Law |last post by:

I want to intercept operations on serial ports (much like PortMon from SysInternals), and I think I need a filter driver. Is that correct, and can one be written in VB.NET? If it is possible, can anyone point me to a reference? I have been hunting around, and have found lots about the principal of filter drivers, but so far nothing with a practical example. Of course, if there is another/better way I would be interested to hear it....

Visual Basic .NET

6 13370

Access XP and Windows XP 64-bit

by: SEFL |last post by:

Hi there, I'm trying to write a VBS that accesses a local database on my system (personal project). I'm running Windows XP 64-bit with Access XP. Every time I try to access the database on the machine, I get the following error: "Provider is not specified and there is no designated default provider."

Microsoft Access / VBA

13 6472

MySQLdb windows binaries for Python 2.5??

by: Chris Seymour |last post by:

HI All, Does such a beast exist? Have been looking but haven't seen any. Any insight would be appreciated. Thanks. Chris

Python

5 3089

Blocking Windows Port using C#

by: VeryMaqbool |last post by:

Does anyone know of a way, using C#, to programmatically block a Windows port? Futhermore I want to know how can we map processes to the ports opened on a computer using C# and without using existing softwares... can anyone suggest some techniques... Regards... Very.

C# / C Sharp

1389

System Reboot using Windows Installer

by: =?Utf-8?B?Um9zaGFuIFIuRA==?= |last post by:

Hi All, I need to reboot the system at the beginning of installation, how can I do this, I am using Windows Installer 3.1 version. I am developing a msi which will install applications, drivers on Windows XP Embedded system. I have write filter protection on my XPe system, to disable this filter we need to elegantly reboot the system after issuing write filter disable command. So everytime new application or driver is to be installed I...

.NET Framework

2 1648

Filter Driver

by: hugomind |last post by:

Hi, I've downloaded den Microsoft DDK 3790.1830 and there is an example under 3790.1830\src\storage\filters\diskperf I've compiled this one and would like to know where I could find the information that are written by using the DebugPrint function ? DebugPrint((2, "DiskPerfAddDevice: Driver %X Device %X\n", DriverObject, PhysicalDeviceObject));

.NET Framework

2 3417

Windows Server 2003 printer driver error

by: wassimdaccache |last post by:

Dear all I am using windows server 2003 sp1. I am connecting a printer called BIRCH prp080 to my pc using the serial port. the printer is working well when I install the driver but the problem is when I restart the computer the printer won't work. Right click properties in my printer driver will show me the message below The prp-080 printer driver is not installed on this computer. Some properties will not be accessible unless...

Microsoft Windows

9554

What is ONU?

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

General

9377

Changing the language in Windows 10

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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...

Windows Server

10136

Problem With Comparison Operator <=> in G++

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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...

C / C++

1 9925

The easy way to turn off automatic updates for Windows 10/11

by: Hystou |last post by:

Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...

Windows Server

9811

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

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

General

8814

AI Job Threat for Devs

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

Career Advice

1 7358

Access Europe - Using VBA to create a class based on a table - Wed 1 May

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

Microsoft Access / VBA

1 3913

transfer the data from one system to another through ip address

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

C# / C Sharp

3 3509

How to add payments to a PHP MySQL app.

by: muto222 |last post by:

How can i add a mobile payment intergratation into php mysql website.

PHP

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

To disable or enable advertisem*nts and analytics tracking please visit the page.

Windows I/O Filter Driver | Bytes (2024)
Top Articles
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 6600

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.