Open windows folder

Open windows folder

Postby MarcoBoschi » Wed Nov 13, 2013 1:37 pm

Hi,
in this way I Open a windows folder from a written by me xharbour/fivewin application
Code: Select all  Expand view

MENUITEM "Images"     SHELLEXECUTE( 0, 0, cPath + "\Images"    , 0, 0, 1 )
 

Is it possible to force folder view settings for this specific folder? Directly from my program?

These folders contains jpg files and I want to set as preview and not details or list or little icons.

Many thanks
Marco
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Open windows folder

Postby ukoenig » Wed Nov 13, 2013 1:59 pm

Marco,

I do it, filling a xBrowse with images from a defined directory.
A image cell can be zoomed.

Maybe a solution for You using the parts :
browse the directory and zoom a selected image ?

Image

Best regards
Uwe :?:
Last edited by ukoenig on Wed Nov 13, 2013 2:11 pm, edited 6 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Open windows folder

Postby MarcoBoschi » Wed Nov 13, 2013 2:06 pm

Uwe,
no,
but thanks anyway :)
From the application I open the folder
In this way users can copy, move, delete pictures and so on.
I'm searching ....
Bye
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Open windows folder

Postby MarcoBoschi » Wed Nov 13, 2013 2:45 pm

User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Open windows folder

Postby James Bott » Wed Nov 13, 2013 4:45 pm

Marco,

You might look for a hidden config file in the directory. If you find one you might be able to modify it.

Alternately, the folder view might be stored in the windows registry. Try searching for that.

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Open windows folder

Postby Jeff Barnes » Thu Nov 14, 2013 12:54 am

Have a look here: http://support.microsoft.com/kb/812003

Scroll down to the troubleshooting section ... it mentions registry entries that control folder view settings. Maybe this has something that can help???
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Open windows folder

Postby MarcoBoschi » Thu Nov 14, 2013 5:19 pm

It would be nice if you could put in these folders in the file hidden files desktop.ini
with a parameter that prevents changing the display type

Now I try to understand if it is possible
Many thanks
:)
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Open windows folder

Postby anserkk » Sat Nov 16, 2013 5:15 am

Instead of
Code: Select all  Expand view
MENUITEM "Images"     SHELLEXECUTE( 0, 0, cPath + "\Images"    , 0, 0, 1 )

Try
Code: Select all  Expand view
MENUITEM "Images"     WinExec("Explorer.exe /root,D:\Camera")


Regards
Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Open windows folder

Postby MarcoBoschi » Sat Nov 16, 2013 5:50 pm

Anser,
In this way folder is opened in the setting changed from explorer

WinExec("Explorer.exe /root,C:\cdx\Documenti\7529\Immages")

Many thanks
Marco
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Open windows folder

Postby MarcoBoschi » Mon Nov 18, 2013 2:41 pm

Anser,
If I open from my application a folder in this way

WinExec("Explorer.exe /root,D:\Camera")

If I modify from explorer setting view
Image

Next time I open the folder is opened in the new setting
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Open windows folder

Postby anserkk » Wed Nov 20, 2013 4:33 am

Here it is working fine. Tested only on Windows 7 PC

I re-checked it again. This time I tried a different folder

1. First I opened the folder manually and changed the view to "Details"
Image

2. Then I closed that folder manually
3. Then I opened the folder manually once again to ensure that the folder view settings has not changed
4. I tried to open the folder using my below given prg code and then it displayed in Medium Icon view mode.
Image

5. After quitting my program I opened the folder manually to check whether the folder view settings has changed or not. It hasn't changed ie the "Details" view was still active.

Code: Select all  Expand view
#Include "FiveWin.ch"
Function Main()
   WinExec("Explorer.exe /root,E:\BijuB S2 Camera\Camera")
Return NIL


Regards
Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Open windows folder

Postby MarcoBoschi » Thu Nov 21, 2013 9:51 am

Anser,
the same (in another path) does not mantain the setting view

Code: Select all  Expand view
#Include "FiveWin.ch"
Function Main()
//    WinExec("Explorer.exe /root,E:\BijuB S2 Camera\Camera")

   WinExec("Explorer.exe /root,C:\Camera")
Return NIL
 
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests