read file attributes
hi, i need to access the attributes of file. more precisely, i need to check if the file is digitally signed or not for example; if i right click on file, then i need to check if the digital signature tab is there or not for that specific file and valid certificate is there. please suggest if any perl module is available to get this info regards, irfan
Re: read file attributes
On Mon, Jul 30, 2012 at 1:24 PM, Irfan Sayed irfan_sayed2...@yahoo.comwrote: hi, i need to access the attributes of file. more precisely, i need to check if the file is digitally signed or not for example; if i right click on file, then i need to check if the digital signature tab is there or not for that specific file and valid certificate is there. please suggest if any perl module is available to get this info regards, irfan Hi Ifran, It would help if you indicate the platform you are working on :-) Now I assume you are working on windows and in that case I would guess (never needed this myself so I can't say for sure) that *Win32API::Filehttp://search.cpan.org/~chorny/Win32API-File-0.1200/File.pm *should do the trick. After all is offers a direct interface to the windows file API and therefore should be able to provide you what you are looking for. Regards, Rob
Re: read file attributes
thanks rob. how about Win32::File? regards irfan From: Rob Coops rco...@gmail.com To: Irfan Sayed irfan_sayed2...@yahoo.com Cc: beginners@perl.org beginners@perl.org Sent: Monday, July 30, 2012 5:23 PM Subject: Re: read file attributes On Mon, Jul 30, 2012 at 1:24 PM, Irfan Sayed irfan_sayed2...@yahoo.com wrote: hi, i need to access the attributes of file. more precisely, i need to check if the file is digitally signed or not for example; if i right click on file, then i need to check if the digital signature tab is there or not for that specific file and valid certificate is there. please suggest if any perl module is available to get this info regards, irfan Hi Ifran, It would help if you indicate the platform you are working on :-) Now I assume you are working on windows and in that case I would guess (never needed this myself so I can't say for sure) that Win32API::File should do the trick. After all is offers a direct interface to the windows file API and therefore should be able to provide you what you are looking for. Regards, Rob
file attributes under Win32
Hi , is it possible to access file attributes in a Win32 environment via Perl. I am interested not only in getting the DOS attributes like creation and modified date, but also the stuff that can be found on the second tab folder of the Properties dialog: File Version, Description, Product Version, etc. Any ideas? Thanks in advance and best regards Zeno eMail: [EMAIL PROTECTED]
Re: file attributes under Win32
on Tue, 18 Feb 2003 08:42:11 GMT, [EMAIL PROTECTED] (Zeno Jauch) wrote: is it possible to access file attributes in a Win32 environment via Perl. I am interested not only in getting the DOS attributes like creation and modified date, but also the stuff that can be found on the second tab folder of the Properties dialog: File Version, Description, Product Version, etc. http://www.roth.net/perl/adminmisc/#GetFileInfo -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File Attributes
I can't remember how, But how do i change the attribute of a file from read only to writable and then back gain. Thanks Roman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File Attributes
There's some good documentation about this at: perldoc -f chmod /Jon Roman Hanousek wrote: I can't remember how, But how do i change the attribute of a file from read only to writable and then back gain. Thanks Roman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
changing file attributes
I'm receiving several hundred data files from from several states via CD-ROM. When these files are copied to my hard drive or network storage, the read-only attribute remains on the file. What I would like to do is have Perl to remove the read-only attribute for all of the files that I put in a certain folder (e.g., L:\Flu\StData\). If there is a better way or another program to do this, can someone direct me to the appropriate tool? Thanks, --- Jeremy T. Miller Centers For Disease Control Atlanta, GA 30333 Ph: (404) 637-1883 Fax: (404) 637-8614 --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: changing file attributes
On 17 January 2002 19:34, Miller, Jeremy T. [mailto:[EMAIL PROTECTED]] wri=ote: What I would like to do is have Perl to remove the read-only attribute for all of the files that I put in a certain folder (e.g., L:\Flu\StData\). For once, don't use perl. cd L:\Flu\StData attrib/s -r *.* (The /s says do this and subdirectories.) If you really need to use perl, I would suggest working with File::Find. Richard Cox Senior Software Developer Dell Technology Online All opinions and statements mine and do not in any way (unless expressly stated) imply anything at all on behalf of my employer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: changing file attributes
Jeremy, You could try something like this: my $Attributes = 32; $path = L:\\Flu\\StData\\; foreach $e ( $path\\*.* ) { Win32::File::SetAttributes ($path, NORMAL); } From: Miller, Jeremy T. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: changing file attributes Date: Thu, 17 Jan 2002 14:33:45 -0500 I'm receiving several hundred data files from from several states via CD-ROM. When these files are copied to my hard drive or network storage, the read-only attribute remains on the file. What I would like to do is have Perl to remove the read-only attribute for all of the files that I put in a certain folder (e.g., L:\Flu\StData\). If there is a better way or another program to do this, can someone direct me to the appropriate tool? Thanks, --- Jeremy T. Miller Centers For Disease Control Atlanta, GA 30333 Ph: (404) 637-1883 Fax: (404) 637-8614 --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Win32::File::Attributes
Need a little help with file attributes. I am trying to query a remote file to file out if is set with read-only attributes, if so I would like to remove them. Any help will be appreciated. Here is the first part, but I can't even get the value of the attributes. !#D://perl//bin//perl -w $server = $_; $share = myshare; $file = some_file; $filename = $server\\$share\\$file; Win32::File::GetAttributes ($filename, $Attributes ) || die $!; print $Attributes; _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File attributes
Does anyone know of a module that will retrieve extended attributes for file? I am looking for the last accessed date on a file, to produce of list of old files. I am sure that it can be done, I am just unaware of a module that does this already. Any help is appreciated. Shawn Faulkingham - CCNA Senior Network Engineer/Admin Indoff Incorporated 1100 Corporate Square Drive Suite 150 Saint Louis, MO. 63132 314-997-1122 x266 [EMAIL PROTECTED] ICQ# 123134 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File attributes
You can use stat which produces 13 different characteristics about a file(one of them being the last access time). See your perldoc -f stat Wags ;) -Original Message- From: Faulkingham, Shawn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 13:45 To: Perl (E-mail) Subject: File attributes Does anyone know of a module that will retrieve extended attributes for file? I am looking for the last accessed date on a file, to produce of list of old files. I am sure that it can be done, I am just unaware of a module that does this already. Any help is appreciated. Shawn Faulkingham - CCNA Senior Network Engineer/Admin Indoff Incorporated 1100 Corporate Square Drive Suite 150 Saint Louis, MO. 63132 314-997-1122 x266 [EMAIL PROTECTED] ICQ# 123134 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]