News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Program test (02-17-2005)

Started by Ewayne, February 18, 2005, 12:20:02 AM

Previous topic - Next topic

Ewayne

Hi,

I purchased an external hard drive for back up, but did not like
the backup software that came with it.

So I wrote my own archive program and it works as intended on
my systems, except for opened and locked files on a NTFS file
system. e.g. NTUSER.DAT.

Does anyone know how to copy those types of files. I know it can
be done because I downloaded a backup program that does it.

Thanks,

Ewayne


[attachment deleted by admin]

pbrennick

Ewayne,
There can be as many as three very different copies of NTUSERS.DAT, one copies over with no problems.  The other two don't.  Are you sure you are getting them all with that backup program?  I doubt it.

Paul

hitchhikr

It may be possible that it's running as an interactive windows service (higher level than admin).

Ewayne

Hi Paul and hitchhikr,

Yes I know there can be several NTUSER.DAT files and also ntuser.dat.LOG,
UsrClass.dat, and UsrClass.dat.LOG  depending on the number of users.

I have the copy problem with these system files:
parent.lock
NTUSER.DAT
ntuser.dat.LOG
UsrClass.dat
UsrClass.dat.LOG

The system has them opened and locked.

Thanks,

Ewayne


pbrennick

Hi Ewayne,
It is good to see you on the forum as I feel you have a lot to offer if you have the time.  I hope you solve your problem but it is a tough one.  Virus checkers always fail on those files also if you check the logs.  They are owned by System which is higher than admin.  Look at how to acheive that level and you will succeed.  I don't think you should post any methods of how to do that, though in the interest of security.  You know what I mean.  OFFTOPIC:  I have a reworked version of your calculator that I am using with my own GUI.  I would like to convert it to an EasyCode project because it is an awesome app.  You are properly credited in the About.  Sound okay?

Paul

Ewayne

Hi Paul,

You can do anything you want with my programs.

Ewayne

pbrennick


ipadilla

#7
Hi Ewayne,
I have found 2 minor bugs:

1) Sometime you have to click twice on buckup.
2) Please, try to backup in the same directory you are backing up (in a recursive way). The loop never finish. You need check that and put a message.I know that this is not usual, but...
Example: backup directory  >c:\a
            backing up:  directory  >c:\a\b

Regards
ipadilla

Ewayne

Hi ipadilla,

I added a message for the posible recursive backup problem, in that situation you can
select Copy Files Only and all of the files would have copied ok.

I can not duplicate having to double click on the Backup button.

Maybe you can tell me the sequence of events that you went through.

You can go to the first post on this thread for the update.

Thanks,

Ewayne



ipadilla

#9
Hi Ewayne,
OK, all  sems to work properly now.
Regarding to the files you can not backup, I have not experience enough.

ipadilla

Ewayne


Mark Jones

As for those files in-use, is it possible to copy them to the temp dir, then copy those to the destination? Perhaps do a sector-by-sector read of the disk to a buffer or temp file, therefore bypassing any access rights issue?
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

hitchhikr

Geee, it's a nonono.

Try using super-powered service account instead:

http://www.masmforum.com/simple/index.php?topic=1147.0