|
I can' t open or copy some files. When I try it says "Access denied" and that maybe some other program has access to the file. But there is no other programm running and windows just has finished booting. My PC crashed while it was copying some files from one drive to another. Please tell me how I can reset this "access"-flag or where it is. Maybe with some API - Calls
JAVA sucks!
|
|
|
|
|
What version of Wndows ?
What filesystem ( NTFS, FAT )?
Regards,
Venet.
Donec eris felix, multos numerabis amicos.
|
|
|
|
|
It' s Windows XP Professional and this drives system is NTFS.
Thanks for your interrest.
|
|
|
|
|
In that case you might want to use TakeOwn.exe utility that comes with Resource Kit (it's for Win2k, but should work on WinXP!)
I recently had the exact same problem. For some reason security bits for certain folders were not read properly (or corrupted completely) and each time access denied would occurr. No way to change permissions back!
Used takeown.exe and fixed it fine. So it's worth trying to use this utility, because it does the job. You can even see the OS protected information!
Regards,
Venet.
Donec eris felix, multos numerabis amicos.
|
|
|
|
|
It may be Explorer itself, or one the many new shell extensions that XP seems to be bundled with. I recall reading about this a while back.
Sorry I don't have any more info. I don't use XP.
Bruce Duncan, CP#9088, CPUA 0xA1EE, Sonork 100.10030 'ugly naked women are good, when i'm not around, in front of someone else' - Shog9
|
|
|
|
|
Hi,
I was recently involved in a project where we wrote a simple program that listend to a signal on a port (COM/LPT) and on that signal it shutdown windows and after shutting down it sent back a signal letting the system know things went well.
Now I have been asked if this could be done with windows 2000 (/xp) and have been contemplating various ways to achive this. But I cant find any information on how to acchive the "power down OK signal" that is soposed to be sent after windows has shutdown.
Does anyone know how this could be achived ?
(in a simple fashion, I mean writing my own HAL isn't something Im about to do)
And is there someone who might know, ie. does Microsoft have anyone I can ask ?
// MickeM
|
|
|
|
|
If I understand you correct, then, when Windows Starts up again you wanna send a signal through the port. Is that right?
You can read the last date/time, where windows were shutting down, in the eventlog, you can also read when it was started again.
You can calculate everything needed about shutdowns/boots/uptime from the data in the eventlog...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
No, it is when windows *has* shutdown.
Its a bit like ATX power, I want to as the last code executetd in windows (or as late as posible) tell the widget connected to the poert that "windows is now shutdown"...
// MickeM
|
|
|
|
|
Is it important that your app be closed last ?
You can detect Windows Shutdown, if you listen for WM_QUERYENDSESSION and act as appropriate.
Is this what you need ?
Regards,
Venet.
Donec eris felix, multos numerabis amicos.
|
|
|
|
|
The CreateProcessWithLogonW function creates a new process and its primary thread. The new process then runs the specified executable file in the security context of the specified credentials (user, domain, and password). It can optionally load the user profile of the specified user.......
Is it also applicable if I want to run a program on a Novell Server (and have a W2K workstation using the Novel client)
or do I need the Novell NDK? Any idea?
((
|
|
|
|
|
Anyone know if it is just the server , or server and workstation that will allow you to mirror a drive ?
Ain't nobody ever told you : There ain't no sanity clause .Groucho Marks
|
|
|
|
|
If you mean mirror a drive over 2 disks (fail safe) every NT based OS from NT4 and up can do that.
(I'n don't know about XP Home edition, never used it, but professional can)
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Anders Molin wrote:
every NT based OS from NT4 and up can do that.
Actually, 2000 Pro can't. It can use mirrored/striped/etc volumes, but can't create them. Gotta use 2K Server to create them.
--Mike--
Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
It can
On my old computer I had 2 disks striped, and I did it from Win2k Pro (it was the only OS on the pc).
I have made, and used, stripeset's from NT4 Workstation, Win2k Pro, and Win XP Pro.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Anders Molin wrote:
I have made, and used, stripeset's from Win2k Pro,
Well, I tried to make a mirror with 2K pro and it promptly told me to bugger off and use Server. *shrug*
--Mike--
Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Yep , 2 disks because I just got caught out without a backup and I do not want to be caught out again. Tape drives of any decent size are too expensive and take a while to copy the shear volume of data on modern hard discs. CD is too slow and too small , so that leaves hard disc , so I was going to mirror two 60GB drives and have one in a removeable shuttle . I was running win 2000 , but I am going to XP on the new discs , but I do not know if the desktop version of XP will create and manage mirrored drives . There will be a performance hit this way , but I will try it and see . If it is troo bad , I will get an IDE raid controller .
Ain't nobody ever told you : There ain't no sanity clause .Groucho Marks
|
|
|
|
|
Andrew Torrance wrote:
There will be a performance hit this way , but I will try it and see .
I have used that on a couple of small servers, and there's virtually none performance penalty...
[edit]
A month ago I get a IDE Raid Controller. that's a great thing, mostly because now I can boot on my Raid 0 (stripe), and they are getting really cheap to buy
Until that I have always used the "Software Raid" built into NT/2k/XP.
[/edit]
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I just use a motherboard with a RAID controller and don't lose performance.
You can also use an addin RAID controller (PCI bus) unless you are trying to add it to a laptop obviously.
Elaine (fluffy tigress emoticon)
Would you like to meet my teddy bear ?
|
|
|
|
|
I can't install Active Driectory, it gave me a error
message "Network location could not be reach".
I searched all the books on Win2k I have but I couldn't
fix it.
Please Help Me confused:
|
|
|
|
|
How do we mount network share to the directory on Windows 2000 Pro or Windows XP Pro? I know that there is a way to mount local drive using mountvol, or we can mount multiple shares to the root point using dfs in the Windows 2000 domain.
Thank you.
- Boris
|
|
|
|
|
Boris,
if it is done by the user/admin, just open Explorer and use Tools>Map drive from the menu.
Start with a computer name such as "\\server\c\documents".
Elaine (fluffy tigress emoticon here)
Would you like to meet my teddy bear ?
|
|
|
|
|
Thank you for the response, but I think you misunderstood my questions.
I just wanted to mount a remote share to my local directory path such as:
\\server\share - mount to - c:\mydirectory, so that I can use the share by accessing a local directory.
In Win2k and XP this is possible with the local drive, and on the Win2K server side by using DFS.
I was just wandering how to overcame a 26 letters limitation
- Boris
-Boris
|
|
|
|
|
OK, there are utilities that let you emulate a CD-ROM drive with a local directory which should do it.
I haven't used them myself but one called VSUBST looks right.
Visit http://www.nonags.com and looks under Disk managing tools.
Second time lucky.......
Elaine (fluffy tigress emoticon)
Would you like to meet my teddy bear ?
|
|
|
|
|
Thank you, but you do not need any third party utilities to mount a local drive. The mountvol command will do the job.
I was just asking about network share mounting, but I guess it's not possible
-Boris
|
|
|
|
|
Corto Maltese wrote:
I just wanted to mount a remote share to my local directory path
Impossible with current OS. You'd have to create your own Reparse Point kernel-mode driver and... Well, it's messy. Have a look at the "Junction Points" article here at CP to get a feeling of how messy it is just to mount local volumes on a directory.
Windows was never intended for such "advanced" tasks. :-<
|
|
|
|