|Thank you Razor for your reply,|
And Vary Vary sorry for delayed reply,
You don't. Take your seconds, and convert it to an hh.mm.ss format.
But, how to convert sec. to hh.mm.ss, in my knowledge there is no such things in batch to do floating point calculations and set /a is vary limited and do not supports floating points.
Yeah, I know, it is possible to do floating point calculations with bat, but then you have to teach the comp. that how to do a division, multiplication etc. jobs
Do you know any process or any utility to do this type of jobs easily ???
You cannot protect yourself against the user. If the user wishes it, he will get
access to your file. You cannot stop him.
I think, every people who can run a comp. they also can open a txt file, but if the text file is locked or protected then many peoples don't know how to get access to it. This is the advantage. And there is also some cmd tools to change the owner of a file or folder (e.g. chown.exe by Alexander Frink)
If any body have the know-how that how to get access to a locked or protected file or how to take-over the ownership of a file or folder then he/she can get access to it any time.
There's already tasklist and taskkill, what else are you looking for? The only
other ability you mentioned was suspending a process, and you need a language
that can interface with the Win32 API to do that.
Maybe you are right, but there is some cmd tools which can do this kind of works. e.g. PSSUSPEND.EXE. This cmd tool is a part of PsTools package v2.44 from Mark Russinovich's Sysinternals.
Reinventing the wheel is an idiom. It means you're making something that's
already made. Generally, you end up re-making it poorly.
Oh, I didn't knew it, I thought you are talking about the Cyclic Update of the console without losing other abilities. But what I have told you (with out knowing the proper meaning) that was true.
Now I am telling you, I am just trying to make some thing own, it is not a replacement of windows task manager by any means. It is only my learning process, and that bat project is just only for my practicing purpose.
You really can't; there's no interface for scripts to read their security token.
The best workaround would be to call a process that does check its permissions.
Running fsutil as a user will set the errorlevel to 1.
Actually, Judago's suggestion to use OPENFILES command is working vary good.
But, other similar concept ways also there, e.g. make a file (e.g. txt file) , modify its ACL and make sure that only an administrator can read or access it, then try to read it with a bat file, if that bat file can read it then it is running with administrative privilege or it is elevated else the bat file is not elevated.
I planned it before I get the suggestion about OPENFILES command from Judago, but now i am using OPENFILES because it's easier.
However, I want to know, is the all versions of XP , VISTA & WIN 7 comes with OPENFILES , FSUTIL , WMIC, I mean, is they installed by default ???
Start it with the SYSTEM account. PSTools might help there.
I always log-on to my comp. with admin account but what is system account ??
I mean, how do i log in to SYSTEM ACCOUNT ?? Do you mean to run a bat file using AUTOEXEC.BAT or AUTOEXEC.NT ??
(I am using "WINDOWS 7 ULTIMATE v6.1.7600")
If i am not wrong, vista and win7 doesn't supports AUTOEXEC.BAT to execute things at start up, I think, it is only there for backward compatibilities, am I correct ??
And what about the AUTOEXEC.NT ?? Can you tell me some thing ??
The WMIC problem is still unsolved, can you give me some solution?
Again, thank you Razor for your reply,
It is enough for a human to live as a human on earth...