Hi,
Is there a way for VB5 to determine exactly where on a hard drive a .exe
file is stored upon the .exe file's first copying to the hard drive? What I
need to know is the exact hard drive sector, cluster, partition, etc.
information so I can use it later on to determine if the file was ever
deleted and restored or moved elsewhere.
Thank you.
-----
Odie 16 9523
> Is there a way for VB5 to determine exactly where on a hard drive a .exe file is stored upon the .exe file's first copying to the hard drive? What I need to know is the exact hard drive sector, cluster, partition, etc. information so I can use it later on to determine if the file was ever deleted and restored or moved elsewhere.
Do you mean "moved" like in what happens when a person regularly defragments
his/her hard drive?
Rick
Yes - or deletes the file, then recreates it due to reinstallation. I want
to be able to see if a person has reinstalled a file by seeing if the .exe
has actually been put in a different place on the hard drive.
--
-----
Odie
"Rick Rothstein" <ri************ @NOSPAMcomcast. net> wrote in message
news:89******** ************@co mcast.com... Is there a way for VB5 to determine exactly where on a hard drive a .exe file is stored upon the .exe file's first copying to the hard drive? What I need to know is the exact hard drive sector, cluster, partition, etc. information so I can use it later on to determine if the file was ever deleted and restored or moved elsewhere.
Do you mean "moved" like in what happens when a person regularly defragments his/her hard drive?
Rick
"Otie" <ot*********@ad elphia.net> wrote in message
news:XI******** *************** *******@adelphi a.com... Yes - or deletes the file, then recreates it due to reinstallation. I want to be able to see if a person has reinstalled a file by seeing if the .exe has actually been put in a different place on the hard drive.
No.. that would be TWO ENTIRELY different events.
What Rick asked was data being moved due to defrag not delete or
reinstall. If you want to detect delete and reinstall wouldn't
checking the time and date be th easiest approach?
For the defrag, that gets tricky since you will need to get the file
alocation table info.
>> What Rick asked was data being moved due to defrag not delete or
reinstall.
No, not defrag. If you want to detect delete and reinstall wouldn't
checking the time and date be the easiest approach?
It is not secure. Anyone can change the date and time back to whatever
again.
For the defrag, that gets tricky since you will need to get the file
alocation table info.
I think that's what I want. How do I access the FAT info? The system has to
do it in order to find files in the first place. I just don't know if VB can
do it.
-----
Allen
Free astrology software at: http://www.astrowin.org
"Raoul Watson" <Wa*****@Intell igenCIA.com> wrote in message
news:sklWf.1094 $Lc1.386@trndny 02... "Otie" <ot*********@ad elphia.net> wrote in message news:XI******** *************** *******@adelphi a.com... Yes - or deletes the file, then recreates it due to reinstallation. I want to be able to see if a person has reinstalled a file by seeing if the .exe has actually been put in a different place on the hard drive.
No.. that would be TWO ENTIRELY different events.
What Rick asked was data being moved due to defrag not delete or reinstall. If you want to detect delete and reinstall wouldn't checking the time and date be th easiest approach?
For the defrag, that gets tricky since you will need to get the file alocation table info.
"Otie" <ot*********@ad elphia.net> wrote in message
news:Sp******** *************** *******@adelphi a.com... What Rick asked was data being moved due to defrag not delete or reinstall.
No, not defrag. For the defrag, that gets tricky since you will need to get the file
alocation table info.
I think that's what I want. How do I access the FAT info? The system has to do it in order to find files in the first place. I just don't know if VB can do it.
The point about defrag is that users who run defrag on their disk will be moving
your file around on the disk, so you can't rely on it's physical location
staying constant.
VB can call any Windows API, so just about anything is possible in VB if you are
willing to chase it down.
But where are you planning to store the information about the file's original
physical location? In the registry? What if the registry entry gets deleted, say
by a good registry cleaner program after uninstalling the program? Or maybe in
another file that can also be deleted?
Are you prepared to deal with network drives, both mapped and shared; with
backup and restore programs; with anti-virus programs that may move a file in
the course of removing a virus; etc., etc. This approach to software security
has been tried before, and found to be lacking...
On Thu, 30 Mar 2006 21:11:30 -0800, "Otie" <ot*********@ad elphia.net>
wrote: What Rick asked was data being moved due to defrag not delete orreinstall.
No, not defrag. If you want to detect delete and reinstall wouldn'tchecking the time and date be the easiest approach?
It is not secure. Anyone can change the date and time back to whatever again. For the defrag, that gets tricky since you will need to get the file alocation table info.
I think that's what I want. How do I access the FAT info? The system has to do it in order to find files in the first place. I just don't know if VB can do it.
What about drives that do not have a FAT format ?
"Otie" <ot*********@ad elphia.net> wrote in message
news:Sp******** *************** *******@adelphi a.com...
... If you want to detect delete and reinstall wouldn't checking the time and date be the easiest approach?
It is not secure. Anyone can change the date and time back to whatever again.
Not true..Depends on the approach..
OK, assume you have two registry keys, "installed" and "last used"
"last used" is always written when the file is accessed.
If it is accessed for the first time, "installed' is written as well.
All you have to do is compare "last used" to "installed. "
If less, someone copied the file to another PC. For the defrag, that gets tricky since you will need to get the file alocation table info.
I think that's what I want. How do I access the FAT info? The system has
to do it in order to find files in the first place. I just don't know if VB
can do it.
You don't want to do this. FAT is not the only system of data recording and
defrag moves your files around (and so does a legitimate backup system)
>> OK, assume you have two registry keys, "installed" and "last used"
"last used" is always written when the file is accessed.
If it is accessed for the first time, "installed' is written as well. All you have to do is compare "last used" to "installed. "
If less, someone copied the file to another PC.
Can't someone just change the installed date using regedit?
What good is this approach if either date can be changed?
Otis
----------------
"Raoul Watson" <Wa*****@Intell igenCIA.com> wrote in message
news:DSlXf.821$ lz3.109@trndny0 5... "Otie" <ot*********@ad elphia.net> wrote in message news:Sp******** *************** *******@adelphi a.com... .. >> If you want to detect delete and reinstall wouldn't
checking the time and date be the easiest approach?
It is not secure. Anyone can change the date and time back to whatever again.
Not true..Depends on the approach..
OK, assume you have two registry keys, "installed" and "last used" "last used" is always written when the file is accessed. If it is accessed for the first time, "installed' is written as well.
All you have to do is compare "last used" to "installed. " If less, someone copied the file to another PC.
>> For the defrag, that gets tricky since you will need to get the file alocation table info.
I think that's what I want. How do I access the FAT info? The system has
to do it in order to find files in the first place. I just don't know if VB can do it.
You don't want to do this. FAT is not the only system of data recording and defrag moves your files around (and so does a legitimate backup system)
"Otie" <ot*********@ad elphia.net> wrote in message
news:qY******** *************** *******@adelphi a.com... OK, assume you have two registry keys, "installed" and "last used" "last used" is always written when the file is accessed. If it is accessed for the first time, "installed' is written as well. All you have to do is compare "last used" to "installed. "
If less, someone copied the file to another PC.
Can't someone just change the installed date using regedit? What good is this approach if either date can be changed?
What you're saying doesn't make sense because in order to do this,
one has to know *where* --or what key among the thousands..
It doesn't matter what technique you use, one can always disable
the code which does the checking. So using your attitude, one
can always say "what good is this method?" Just find the code
and replace it with NOP's This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jonathan |
last post by:
I am creating a CD-ROM based website template. Things work fine under
Windows but when I try to run the site under Linux the path is messed
up. Therefore my JavaScript functions misinterpret the root to be the
root of the filesystem instead of the root of the cd. Any cd I make
will need to run on Windows and Linux systems and the filesystems and
the way the cd's are mounted are always different. For example:
Windows root path for a...
|
by: Nate |
last post by:
Hello,
I am trying to recover a SQL Server 7 database from another hard disk
drive that has a corrupted Windows 2000 Advanced Server installation. I
am not able to repair the corrupted Windows 2000 Advanced Server
installation but the file system is intact. I have installed a new copy
of SQL Server 7 onto a new hard disk and have used the sp_attach_db
system stored procedure to attach the database from the old hard drive
into the new...
|
by: Massimiliano Campagnoli |
last post by:
Good morning,
Database PRODUCTION was created on a system mamanged tablespace on
drive c:\
Now drive c:\ is running out of space and I need to move PRODUCTION to
the larger drive d:\ on the same machine.
PRODUCTION is currently accessed by 50 clients running many
applications and by some REXX scripts running on the same server
machine on a timely basis.
I do not want to modify in any way clients configuration, applications,
|
by: DD |
last post by:
Hi
I have a split database, that is packaged and used in a runtime
enviroment.
I want to make it easier for the user, a button on the frontend
"Export Backend"
They can click on the button then search for the backend and then save
the backend to a CD or Floppy.
|
by: Victor |
last post by:
Please, could anybody kindly point me to a possibility to find out the
location of a file contained in a VC++ 2005 solution?
What I mean is really the location in the file system on the hard
drive. In the VC++ 6 it was possible to see this information in the
properties of a file - but now I miss this chance. But I believe it
must work somehow.
And how?
| |
by: Nenad Dobrilovic |
last post by:
Hi all,
I have a really strange situation, but I believe that there is someone else
who has already experinced the same, and is willing to help me!
I made an application using VS 2005 in C#, which uses one setting from
*.exe.config file with 'user' scope. That is a server address, for example.
I wanted to setup that parameter during installation. So, I included one
additonal step during installation which collects a server address...
|
by: =?Utf-8?B?UGV0ZXI=?= |
last post by:
Dear,
I do have an ASP page with vbscript code entirely executed on the IIS
server. The page contains a lot of data coming from the SQL Server.
I want to populate one of the <selectboxes on that page with data coming
from a file stored on the clients local hard drive. How do I achieve this?
Thanks in advance,
Regards,
Peter
|
by: inFocus |
last post by:
Hello,
I am new to python and wanted to write something for myself where
after inputing two words it would search entire drive and when finding
both names in files name would either copy or move thoe files to a
specified directory.
But couple of attempts did not work as desired this is one of them.
Could someone help fix it or maybe give a better example.
|
by: zaza24 |
last post by:
Hello there
I am loosing my time since a few days trying to install a CRM (ACT! 2008 version 10) software on a brand new HP notebook with Vista prof OS.
Ths installation do not show any troubles and works fine; the software installs also Microsoft SQL Server Express 2005 (the different services installed are SQL Server for ACT7, SQL server Active Directory Helper, SQL Server Browser and SQL Server VSS Writer).
SQL Service for ACT7 is in...
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |