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 X-Server-Uuid: 0A4F2A26-D23B-4C5A-98BA-1B421465C24E content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Accessing Property Sheets Date: Thu, 29 Jul 2004 10:21:24 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "DePriest, Jason R." To: cygwin AT cygwin DOT com X-OriginalArrivalTime: 29 Jul 2004 15:22:14.0350 (UTC) FILETIME=[D3893EE0:01C4757F] X-WSS-ID: 6D17C9A62U8239838-08-01 Content-Type: text/plain; charset=utf-8 X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id i6TFNDmM004224 On Thursday, July 29, 2004 7:31 AM, 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). > >> 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. > > 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. > > HTH, > Igor > [*] One of the possible pointers is > > -- > http://cs.nyu.edu/~pechtcha/ > |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu > ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com > |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. > '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! > > "Happiness lies in being privileged to work hard for long hours in > doing whatever you think is worth doing." -- Dr. Jubal Harshaw I have a perl script that I use from a Windows command prompt that does this. It uses Digest::MD5, Win32::File, Win32::File::VersionInfo, and Win32::FileTime to get as much information as possible. It won't run under a cygwin prompt because I don't have all of those Win32 modules available, but if you are interested, I can send it to you. Here is a sample of the output: C:\Tools\Code\projects\file-version>perl file-version-edit.pl \tools\sysinternals\pslist.exe File: \tools\sysinternals\pslist.exe Your file seems to exist. Win32::File::GetAttrubutes("\tools\sysinternals\pslist.exe",$fattr) -> 32 $finfo = Win32::File::VersionInfo::GetFileVersionInfo("\tools\sysinternals\pslist.exe") -> HASH(0x183f094) $ftime = Win32::FileTime->new("\tools\sysinternals\pslist.exe") -> Win32::FileTime=HASH(0x18353cc) File Version: 1.26.0.0 Product Version: 1.26.0.0 OS: NT/Win32 Type: Application Date: 0000000000000000 Language: English (United States) Comments: CompanyName: Sysinternals FileDescription: Sysinternals PsList FileVersion: 1.26 InternalName: pslist Copyright: Copyright ⌐ 2000-2004 Mark Russinovich Trademarks: OriginalFilename: pslist.exe ProductName: Sysinternals pslist ProductVersion: 1.26 PrivateBuild: SpecialBuild: File Attributes: archive Created : 2004/05/31 14:25:04 Accessed : 2004/07/29 10:20:03 Modified : 2004/05/31 14:25:04 MD5 Checksum: 28ad0aaa0190120c65484d8e079daa62 C:\Tools\Code\projects\file-version> -Jason PS - I apologize in advance for the legal disclaimer at the bottom of my email message. This is tacked on by our SMTP gateway and I have no control over it. -- ------------------------------------------------------------------------------ Confidentiality notice: This e-mail message, including any attachments, may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution, or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer. ==============================================================================