473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Determine if user has windows classic folders

Hi everybody!

I wonder if this is possible?
I need to determine if a client is using "windows classic folders" or
anything else. If I instantiate a Shell ActiveX object is there a way
of obtaining this information from javascript? (I know that the user
will get prompted about allowing such an operation, but I am willing
to live with this). Because of the way one of my pages work, I need
to know this information in order to "cover up" certain areas of the
screen (namely, the damn web folder area to the left of FTP folder
views!!!)

If anybody can suggest another method (or point me in the right
direction using the Shell automation object) I'll be very grateful!

Thanks!
Jul 23 '05 #1
3 1883
Web Webon wrote:
Hi everybody!

I wonder if this is possible?
I need to determine if a client is using "windows classic folders" or
anything else. If I instantiate a Shell ActiveX object is there a way
of obtaining this information from javascript? (I know that the user
will get prompted about allowing such an operation, but I am willing
to live with this). Because of the way one of my pages work, I need
to know this information in order to "cover up" certain areas of the
screen (namely, the damn web folder area to the left of FTP folder
views!!!)

If anybody can suggest another method (or point me in the right
direction using the Shell automation object) I'll be very grateful!


And if I am not using IE as the browser?

If I am using IE and I have the folder view set, its because *I* want it
that way. Its *my* browser, leave it the @#$@ alone. Design your page to
look the way you want it, on its own, and let the user decide what views
are used. I suppose you would want to attempt to close the Search Pane
as well also?

The answer is no.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #2
Web Webon wrote:
Hi everybody!

I wonder if this is possible?
I need to determine if a client is using "windows classic folders" or
anything else. If I instantiate a Shell ActiveX object is there a way
of obtaining this information from javascript?
*If* you really can get users to allow the execution of the ActiveX
shell object (the one that, if allowed to run from a remote web site,
allows the formatting of hard disks, the running of any and all
applications/DLLs and the re-writing of the registry: So anyone who
allows this is _so_ stupid that you really should exploit the
opportunity to the fullest and give yourself unlimited remote access the
their computer so you can take advantage of them fully at a later date)
then you can read and write registry keys. The offending key is a mass
of hex code, but if you can find out which bits represent the folder
settings in question you certainly could work out the user's current
configuration. (you can deduce the bits by recording the value, changing
settings - re-recording and comparing the results (assuming you cannot
track the details down in Microsoft documentation)).
(I know that the user
will get prompted about allowing such an operation, but
I am willing to live with this).
My security settings will not even prompt me when such an ActiveX
request is made, they are disallowed silently.
Because of the way one of my pages work, I need
to know this information in order to "cover up" certain areas of the
screen (namely, the damn web folder area to the left of FTP folder
views!!!)
Need seems to be expressed much more often than it exists. On the face
of it this sounds incredibly wrong, in attitude and approach.

But even if it can be done you are going to need quite a bit of
additional knowledge to be in a position to work out the location of
anything on Windows, it is a very user configurable operating system (in
terms of such things as icon and text size, window borders, and much
else) and there is variation between versions.

And what are you planning on covering it with?
If anybody can suggest another method (or point me in the right
direction using the Shell automation object) I'll be very grateful!


So far this sounds like solving the wrong problem (assuming it works),
alternative suggestions can only follow from identifying the real
problem, which would probably be best done by your answering the
question: Why? (Why do you perceive the web folder area as a problem?)

Richard.
Jul 23 '05 #3
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message news:<c8*******************@news.demon.co.uk>...
Web Webon wrote:
Hi everybody!

I wonder if this is possible?
I need to determine if a client is using "windows classic folders" or
anything else. If I instantiate a Shell ActiveX object is there a way
of obtaining this information from javascript?
*If* you really can get users to allow the execution of the ActiveX
shell object (the one that, if allowed to run from a remote web site,
allows the formatting of hard disks, the running of any and all
applications/DLLs and the re-writing of the registry: So anyone who
allows this is _so_ stupid that you really should exploit the
opportunity to the fullest and give yourself unlimited remote access the
their computer so you can take advantage of them fully at a later date)
then you can read and write registry keys. The offending key is a mass
of hex code, but if you can find out which bits represent the folder
settings in question you certainly could work out the user's current
configuration. (you can deduce the bits by recording the value, changing
settings - re-recording and comparing the results (assuming you cannot
track the details down in Microsoft documentation)).


Yes, Richard, I know if I go through the documentation eventually I
find the combination I need. Just wondering if anybody has done the
same maybe I can save some time. All I need is basically the
properties to call to determine if that Windows Classic Folders is set
or not.
(I know that the user
will get prompted about allowing such an operation, but
I am willing to live with this).
My security settings will not even prompt me when such an ActiveX
request is made, they are disallowed silently.


The users of this application must have this setting to, at the very
least, PROMPT. I should have mentioned this is a very specific web
application, needs Explorer 5.5 or superior, and the site needs to be
added to the Trusted Sites list.
Because of the way one of my pages work, I need
to know this information in order to "cover up" certain areas of the
screen (namely, the damn web folder area to the left of FTP folder
views!!!)
Need seems to be expressed much more often than it exists. On the face
of it this sounds incredibly wrong, in attitude and approach.

But even if it can be done you are going to need quite a bit of
additional knowledge to be in a position to work out the location of
anything on Windows, it is a very user configurable operating system (in
terms of such things as icon and text size, window borders, and much
else) and there is variation between versions.

And what are you planning on covering it with?

What I'm using here are FTP folders, inside frames and or iframes.
This way the user can drag and drop files to the application, with all
the beauty of FTP progress bar, reliability, etc. No ASP upload or
dll upload or stuff like that. The files are then immediately picked
up by the web application from the user temporary FTP folder (created
on the fly) and then moved to the appropriate destination folder.
(This is in part a document management web based solution)

If anybody can suggest another method (or point me in the right
direction using the Shell automation object) I'll be very grateful!


So far this sounds like solving the wrong problem (assuming it works),
alternative suggestions can only follow from identifying the real
problem, which would probably be best done by your answering the
question: Why? (Why do you perceive the web folder area as a problem?)

Richard.


By using these FTP folders I am faced with the problem of some users
who have the setting of "Enable Web Content" who also get the
directory listing in the left side of the FTP view pane. No matter
what amount of explanation we put there, the user who thinks along
these lines:
- "because *I* want it that way. Its *my* browser, leave it the @#$@
alone. Design your page to look the way you want it, on its own, and
let the user decide what views are used." - in their infinite wisdom,
try to browse this tree in order to get the files, instead of dragging
them from windows explorer as it says in the page's instructions.

So, my solution although klumsy (but it works) is to user a popup
window that always covers the left area of the FTP folder view. So
the user cannot interact with it. The right area is left untouched,
so files can be dragged and drop there. But because some users ARE
using Windows Classic Folders, they do not need to have the left area
covered. I need to determine that somehow or the files they drag and
drop will appear "hidden" behind the popup.

Was I a bit clearer this time?

Thanks Richard
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: lucpustjens | last post by:
Hello, I want te determine the client operating system, because I need to kno the default cookie directory. If there is a way to determine the cooki directory directly, than it is also good. ...
2
by: Byron | last post by:
I have a Windows form application developed in VS 2003 C# I am using Installshield to install it. After running Setup, each time a new user runs the application for the first time Setup attempts...
5
by: steves | last post by:
Hello, We are developing a web application written in classic ASP, which will end up running on Windows 2000 server. The site has a public side (the login page and related images), and a...
19
by: Lauren Quantrell | last post by:
In Windows XP display Properties/Appearance users can chose between: Windows XP Style or Windows Classic Style. Is there a way in VBA to determine the user's selection? The reason: Toolbars...
7
by: Samuel | last post by:
Hi, I am building a page that makes use of user control as a templating technique. The following is that I have in mind and it is actually working: Root/ -- login.aspx -- login.aspx.vb --...
3
by: KSC | last post by:
Hello, Is there a way to programmatically determine if a directory is shared and if so, what the sharename is? It seems a simple question, but I have been searching and not found the...
1
by: Bill | last post by:
Is there a fast way, with Classic ASP, to determine if a user agent is a search engine spider? I know that ASP.NET has Request.Browser.Crawler, I'm looking to see if classic ASP has something...
2
by: Fox1977 | last post by:
Hi folks, Just wondering if anyone can help me out with this problem I'm having getting a particular .net web application to run on a windows 2003 r2 x64 platform running as a domain account. ...
4
by: JDS | last post by:
I am using a setup project and Windows Installer to deploy my application and have some additional code in custom actions. In this code I need to refer to one of the install files but I cannot find...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.