Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
JohanEkdahl
PostPosted: Sep 07, 2008 - 12:50 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18513
Location: Lund, Sweden

Well, it works if I right click on "Command PRompt" in the Start menu and select "Run as administrator" rather than selecting Run, "cmd". (What is this!?! I have Adminstrator rights!?! Why am I being degraded when I select to run a program?)

So, now I try openfiles, and discover that I have to alter some "global flag" and then restart the computer in order to (maybe) get this working. That kind-of does not help me with the original problem. I wanted to dismount the USB stick in an orderly fashion, and I assume that this will be done if I shut down Windows. So now I don't need openfiles. I just need to shut down Windows.

Everyone stop reading now..

How on earth is it that Microsoft has worked some 15 odd years on an operating system and still haven't got it right. The OS does not maintain a list of opewn files, or is not able to compute such a list on the fly from the information available in each process?! Why bother giving us semi-transparent title bars for windows, move things around under control panel, implement weird stuff that pops up without me ever asking for it (that fluffety-fluff "panel" at the right of the desktop) etc etc) when they have not gotten basic OS functionality in place?! I have not seen one other proper operating system that was not able to do report on the aspects of the running system.

Yeah, I actually do understand why they act in this way. MS people know how to do this. They just don't care. Does not make me less irritated.

Sorry for the rant, all..
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Sep 07, 2008 - 06:05 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62209
Location: (using avr-gcc in) Finchingfield, Essex, England

As Ross mentions above - "filemon" is a useful utility for this as it hooks the Windows system and shows you all file accessing API calls. (there's also an equally useful regmon which shows all read/writes to the registry so you can see which keys a program is accessing when it operates). I've used these successfully in the past to find out what files an app is using. I first looked at this when coming from a Novell network where it has utilities to say who has which files open but Windows has no equivalent (AFAIK)

Filemon: http://technet.microsoft.com/en-us/sysi ... 96642.aspx
Regmon: http://technet.microsoft.com/en-us/sysi ... 96652.aspx

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Sep 07, 2008 - 06:44 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18513
Location: Lund, Sweden

Sorry, Cliff. Filemon won't run on Vista. It has "been replaced by [...] Process Monitor". This was a newly downloaded version as per the link you supplied above. You wouldn't have an older version of filemon lying around, that you could share with me? (I doubt that Sysinternals/MS build the message box with caption "Filemon on Vista" into those older versions...
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
cpluscon
PostPosted: Sep 07, 2008 - 06:47 PM
Raving lunatic


Joined: Jul 10, 2006
Posts: 2654
Location: Minneapolis

JohanEkdahl wrote:
when they have not gotten basic OS functionality in place
An open file lister could be an abuse of monopoly power. So blame the anti-trust litigators; Microsoft has had to hire teams of lawyers instead of skilled programmers and hence the decline in the quality of their offerings.

If my PC acted like yours, I'd suspect virus or corrupt OS and so format the drive and start from scratch....
 
 View user's profile Send private message  
Reply with quote Back to top
AllN
PostPosted: Sep 07, 2008 - 07:16 PM
Posting Freak


Joined: Feb 14, 2007
Posts: 1858
Location: San Diego California

Process Monitor is a very powerful app better filters, export and more features. But ya I like the classic’s too!
You can download it from Microsoft here:
http://technet.microsoft.com/en-us/sysi ... 96642.aspx
The download is on the top right side of the page.

Not sure what version is being offered but there is a warning:
However to run filemon and regmon you will need to modify versions 7.04 for booth using a hexeditor.

Filemon 7.04
Offset: 4ED5, Old: 72, New: EB

Regmon 7.04
Offset: 91F5, Old: 72, New: EB

_________________
Resistance is futile…… You will be compiled!
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Sep 07, 2008 - 07:23 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62209
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:
won't run on Vista

I think I know the solution to that one then!

(actually I'm about to buy myself a new latop in fact - hope I can find one that still has the XP option!)

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Gluteal-Cleft
PostPosted: Sep 07, 2008 - 08:10 PM
Hangaround


Joined: Sep 11, 2007
Posts: 340
Location: USA

zoomcityzoom wrote:
I knew someone was going to ask this...
In Windows, open Device Manager, Disk Drives, right click on USB drive in question, select properties. In Policies tab, select optimize for quick removal. Done.

I think most thumb drives initialize this way. My WD 250GB USB drive does not.

Tom


That's because if you do that, you can only use the FAT file system, which neither supports large drives nor large files.

Since NTFS is a journaling file system, it has to be "optimized for performance" if you want to use it.
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Sep 07, 2008 - 09:19 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18513
Location: Lund, Sweden

A||n wrote:

But ya I like the classic’s too!
You can download it from Microsoft here:
http://technet.microsoft.com/en-us/sysi ... 96642.aspx
The download is on the top right side of the page.

I know. I've been there. I've downloaded it. It will not run on Vista.

Yes, I am planning to upgrade from Vista to XP, but according to the page you point to it will not work on XP with SP2 or higher either.

I've always been amazed that one of the chief architects behind NT (which is the first incarnation of the suiote that contuniyes W2K, XP, Vista) was one of the main architects behind VMS, IMO the finest operating system ever (if you deem them after their time). How the man could sink to the level of Windoze is a riddle if there ever was one.

I'll stop ranting now.

I'm still wondering if there is a convenient method to use Process Explorer to see who/what has a file open. Convenient means I know the file, or the directory, or the device and I can get the information on open files given that without a sequential search of all open files in all of the system.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
emuler
PostPosted: Sep 07, 2008 - 09:26 PM
Raving lunatic


Joined: Feb 07, 2007
Posts: 2395
Location: New Delhi, India

Did you try Unlocker?

_________________
If you think education is expensive, try ignorance.
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Sep 07, 2008 - 10:03 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18513
Location: Lund, Sweden

I have a thread going at the Sysinternals site now. I'll get back with the results from that.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
JohanEkdahl
PostPosted: Sep 07, 2008 - 10:28 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18513
Location: Lund, Sweden

Quote:

Did you try Unlocker?

Unlocker seems to be the best so far. "Best" means only working thing so far.. Thank you!
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
AllN
PostPosted: Sep 07, 2008 - 11:59 PM
Posting Freak


Joined: Feb 14, 2007
Posts: 1858
Location: San Diego California

I know folks have lots of problems with windows.
But I never do. I had XP running for years on several machines and installed windows Vista 1st time and besides haveing to learn where they moved everything it's been running without any problems so far!!!

I don't leave explorer running after use ever, though as it slows me down.

I don't get it? I guess, I really am lucky nothing else can explain it! Well beter to be lucky than good.

_________________
Resistance is futile…… You will be compiled!
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Sep 08, 2008 - 12:28 AM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18513
Location: Lund, Sweden

Quote:

I don't leave explorer running after use ever

We're talking Windows Explorer, not IE. Without Windows Explorer I have a hard time getting much done. And if I terminate it, it has this habit of just restarting.. Wink
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
AllN
PostPosted: Sep 08, 2008 - 12:33 AM
Posting Freak


Joined: Feb 14, 2007
Posts: 1858
Location: San Diego California

JohanEkdahl wrote:
Quote:

I don't leave explorer running after use ever

We're talking Windows Explorer, not IE. Without Windows Explorer I have a hard time getting much done. And if I terminate it, it has this habit of just restarting.. Wink
Oh my bad! I do have to reboot on XP every once in a while but I'm usually pushing the limits in a program I'm writing and expected a bug to go endless loop on me or trash memory.

_________________
Resistance is futile…… You will be compiled!
 
 View user's profile Send private message  
Reply with quote Back to top
cpluscon
PostPosted: Sep 09, 2008 - 06:09 AM
Raving lunatic


Joined: Jul 10, 2006
Posts: 2654
Location: Minneapolis

JohanEkdahl wrote:
VMS, IMO the finest operating system ever
You must have had a better version than the ones I battled with. After ten years using VMS I learned what a RPITA it was when I ported our apps to NT.
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Sep 09, 2008 - 09:05 AM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18513
Location: Lund, Sweden

Quote:

After ten years using VMS I learned what a RPITA it was when I ported our apps to NT.

Shocked Elaborate? Examples? What was a PITA? VMS? NT? The porting?

The knight of the order for defending VMS until death springs into action.. Wink

[ OK, this is "my" thread" so I'll de-rail it without any shame at all.]
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
barnacle
PostPosted: Sep 09, 2008 - 10:52 AM
Raving lunatic


Joined: Jan 03, 2006
Posts: 4410
Location: Hemel Hemsptead, UK

Heh. Playing with VMS at work at the moment; our playout systems use it (we're so paranoid we insist the backups of our backups of our replicated by rack, room, building, and city systems use a mix of different OSs, just in case...)

Neil

_________________
Neil Barnes
www.nailed-barnacle.co.uk
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
cpluscon
PostPosted: Sep 09, 2008 - 03:54 PM
Raving lunatic


Joined: Jul 10, 2006
Posts: 2654
Location: Minneapolis

JohanEkdahl wrote:
Elaborate? Examples? What was a PITA? VMS? NT? The porting?
I used UNIX in college then used VMS when employed, so the shell lacked piping and other flexibilities. Remember /OUT=?

Thirty plus volumes of mostly unintelligible programming reference material, in binders in no particular order. How can anyone ever complain about the windows APIs after suffering through that?

Network admin, user management, OS/compiler installation, backup. All of these chores were like going to the dentist. Remember those awful license PAKs? That's not a pleasant memory!

At the kernel level, no doubt VMS, and NT, were probably relatively high quality products. Dave Cutler is the name I've heard that architected both VMS and NT. Remember what a POS Windows was before NT came along; Cutler's team no doubt did a pretty good job there, of course, borrowing from their experience at DEC.
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Sep 09, 2008 - 05:36 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18513
Location: Lund, Sweden

Quote:
Thirty plus volumes of mostly unintelligible programming reference material, in binders in no particular order. How can anyone ever complain about the windows APIs after suffering through that?

I had no problem finding my way around the 2 shelf-meters of VMS binders. I still can not figure out how MS thinks when they organize their help and documentation. And there was one run-time library for all languages that was "native" (adhered to VMS Procedure Calling Standard), documented in one place. And apart from "FAO" (and the system service SYS$FAO beneath it) things was called what they did, not some cryptic acronym or similar. Unix people don't like this, I know...

Quote:
Network admin, user management, OS/compiler installation, backup. All of these chores were like going to the dentist.

OK, I was mostly not involved in these things.

Quote:
Remember those awful license PAKs? That's not a pleasant memory!

Yes remember, and no not pleasant. Not very much better with MSs product activation codes though. (Still vaguely remember the example PAK in the documentation. Was it "HEAH-FIDO-VOFF-VOFF"?)

Quote:
Cutler's team no doubt did a pretty good job there

Uh? Need to restart the whole of Windoze just because I install a new app? Yuck!
And the core subject of this thread: Not intrinsic thing to display open files? Bah!

But, yes: Piping is one of U*ix's definitive strengths.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
S-Sohn
PostPosted: Sep 09, 2008 - 05:50 PM
Posting Freak


Joined: Aug 22, 2004
Posts: 1624
Location: Germany

An other vote for unlocker. It's a great tool which I'm using since several month.

Also make sure that you don't have any program running in the background which might access your USB drives. In my case it was O&O Defrag which I had configured to defragment my drives whenever the CPU is idle. Took me some time to find out. Rolling Eyes

Regards
Sebastian
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits