Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <4109ABB6.20500@sbcglobal.net> Date: Thu, 29 Jul 2004 19:00:22 -0700 From: George Reply-To: d1945 AT sbcglobal DOT net User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Accessing Property Sheets References: <41088F2F DOT 6030909 AT sbcglobal DOT net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Igor Pechtchanski wrote: >On Wed, 28 Jul 2004, George wrote: > > >>I keep running up against situations where I require access to the >>property sheet for a folder/file to perform a settings change I can't >>accomplish otherwise. >> > >Exactly which properties are you trying to change? Some of the security >ones can be changed via setfacl, as well as chmod/chown (I don't think >either one supports setting inheritable permissions, though). > Setting inheritable permissions was one, but some of the folder/virtual folder property sheets do have settings other than permissions-related ones. Also, it can sometimes be a useful (albeit back-asswords) double check to ensure an action performed on the command-line had the desired effect (sort of like using cat on a *nix system to review the contents of a config file after using a GUI tool to perform changes. What inspired my question was two simple shell scripts I recently wrote to provide a menu-driven interface to the .cpl applets and .msc snap-ins. I found the approach infinitely easier and faster to use than opening explorer windows, or labouring over messy changes to the registry on the command-line. > >>I'm wondering whether Cygwin offers some way I've not yet discovered to >>display the property sheet dialog for a folder/file. Seems it would >>save the trouble of opening an explorer window from bash, selecting a >>file, opening the context menu by right clicking and then selecting >>properties (before navigating the various tabs and clicking some more). >> > >Not really Cygwin-specific, but look up the Shell API on MSDN [*] (which >you can invoke via rundll/rundll32), in particular, the SHObjectProperties >function. > I did stumble across 'cygstart --reference'. A thoughtful addition. > >To put this back on-topic, if you do manage to find a way to do what you >want that works on all OS's, please consider making a cygstart-like >utility to do this and contributing it to the Cygwin distribution. > Gladly. Send me a few books on C programming and I'll get right on it. :-) Seriously, it looks trivial enough but I didn't know I could invoke those functions using rundll32 so maybe that'll take care of my immediate needs. I'd like to think it would useful to others so maybe I will consider your suggestion and buy those books myself and see what comes of it. Cheers. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/