PC Review


Reply
Thread Tools Rate Thread

How can i ignore file access from system32 folder?

 
 
immi
Guest
Posts: n/a
 
      27th Jul 2009
Scanario:
-------------
Suppose abc.txt file is used by different programs (say Prog1, Prog2,
Prog3). abc.txt is placed in local application's folders of Prog1,
Prog2 and Prog3. On copy of abc.txt is found in system32 folder as
well. I have observer that if OS find a file in system32 then it
ignores the file present in application local folders. To access
abc.txt locally I used Prog1.exe.local file and place the path of
abc.txt in Environment Variables path. Even then it always go for
system32 path.

Question:
-------------
Is there any way through which system32 path can be ignored and
abc.txt can be accessed locally? Infect abc.txt is copied in system32
folder by some other mean which I can’t restrict. Also these files
have different configuration settings.
 
Reply With Quote
 
 
 
 
Don Phillipson
Guest
Posts: n/a
 
      27th Jul 2009
"immi" <(E-Mail Removed)> wrote in message
news:c84931ba-d529-4d97-98e2-(E-Mail Removed)...

> Suppose abc.txt file is used by different programs (say Prog1, Prog2,
> Prog3). abc.txt is placed in local application's folders of Prog1,
> Prog2 and Prog3. On copy of abc.txt is found in system32 folder as
> well. I have observer that if OS find a file in system32 then it
> ignores the file present in application local folders. To access
> abc.txt locally I used Prog1.exe.local file and place the path of
> abc.txt in Environment Variables path. Even then it always go for
> system32 path.


This looks like a defect in programming
1. If PROG1 is configured to load ABC.TXT from
filepath#1 and write it to the same filepath, and it
(instead or additionally) writes a copy to /Win/System32
that is a defect in PROG1.
2. In general, we do not expect any data.txt files to be
written anywhere in c:/Windows (usually reserved for
OS files including configuration instructions.)

> Is there any way through which system32 path can be ignored and
> abc.txt can be accessed locally? Infect abc.txt is copied in system32
> folder by some other mean which I can’t restrict. Also these files
> have different configuration settings.


This is not sufficiently clear. E.g. data files usually have
no "configuration settings:" these are configurations of the
installed program that reads/writes the data file.

--
Don Phillipson
Carlsbad Springs
(Ottawa, Canada)


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      27th Jul 2009


"immi" <(E-Mail Removed)> wrote in message
news:c84931ba-d529-4d97-98e2-(E-Mail Removed)...
Scanario:
-------------
Suppose abc.txt file is used by different programs (say Prog1, Prog2,
Prog3). abc.txt is placed in local application's folders of Prog1,
Prog2 and Prog3. On copy of abc.txt is found in system32 folder as
well. I have observer that if OS find a file in system32 then it
ignores the file present in application local folders. To access
abc.txt locally I used Prog1.exe.local file and place the path of
abc.txt in Environment Variables path. Even then it always go for
system32 path.

Question:
-------------
Is there any way through which system32 path can be ignored and
abc.txt can be accessed locally? Infect abc.txt is copied in system32
folder by some other mean which I can’t restrict. Also these files
have different configuration settings.

==================

The Windows search process applies to executables only, that is to files
with extensions that you can see in the environmental variable %PathExt%. If
your application opens a .txt file in the System32 folder then this occurs
because of two reasons:
- The application does not use a fully qualified path (which is bad), and;
- The current default folder happens to be the System32 folder.
You may be able to implement a fragile fix by starting the application in
the desired application folder.


 
Reply With Quote
 
immi
Guest
Posts: n/a
 
      28th Jul 2009
> This looks like a defect in programming
> 1. *If PROG1 is configured to load ABC.TXT from
> filepath#1 and write it to the same filepath, and it
> (instead or additionally) writes a copy to /Win/System32
> that is a defect in PROG1.
> 2. *In general, we do not expect any data.txt files to be
> written anywhere in c:/Windows (usually reserved for
> OS files including configuration instructions.)
>
>
> This is not sufficiently clear. *E.g. data files usually have
> no "configuration settings:" *these are configurations of the
> installed program *that reads/writes the data file.
>


Don Phillipson, Thanx for reply

You are very right in saying that data files usually have no
"configuration settings" plus system32 folder is reserved for OS
files. Now I try to make my question a bit clear.

First of all the txt file i am talking about is "nethasp.ini" which
have some server paths separated by semicolons so that multiple
programs can use them.

2ndly the programs Prog1, Prog2 etc are not developed by me. These are
3rd party programs for me and my role is a sort of bridge or plateform
thru which these programs execute. My client has already nethasp.ini
in their system32 folder by some application ran earlier. I have no
access to change the implementation of Prog1, Prog2 etc neither i can
delete existing nethasp.ini from system32 folder.

In most simple words I want to redirect the searching mechanism to
access files from application's folder.

Waiting for your quick responce.

Regards
Immi
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System32 file folder br57 Windows XP General 2 18th Apr 2005 04:33 AM
How can I delete a file in system32 folder??? Phil T Windows XP Help 2 29th Jul 2004 04:18 PM
access on /system32/config Folder Andreas Winter Windows XP General 1 7th Mar 2004 01:07 AM
access on /system32/config Folder Andreas Winter Windows XP Accessibility 1 7th Mar 2004 01:07 AM
System32 File Folder fredo Windows XP Help 1 14th Nov 2003 04:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:40 PM.