Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Get File Properties

Hi,

I just read the postings of getting the file properties of a opened
workbook. I'd like to know if it is possible (eg via API) to get the file
properties of a CLOSED file.

I have a zipped file on my website which my clients can download. However,
in Windows WP, it decompresses automatically, in versions before it doesn't.
I could look at the file size but this changes time to time. If I look to
the document properties, the extracted file contains my properties (eg.
title of my program) but the compressed file doesn't. If I could read only
one property, I could see if I get the compressed or extracted file.

Any help is appreciated!
Thanks
Jos Vens


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Get File Properties

Jos,

See the "Document Properties of Close Files" at
http://www.cpearson.com/excel/docprop.htm .


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Jos Vens" wrote in message
...
Hi,

I just read the postings of getting the file properties of a

opened
workbook. I'd like to know if it is possible (eg via API) to

get the file
properties of a CLOSED file.

I have a zipped file on my website which my clients can

download. However,
in Windows WP, it decompresses automatically, in versions

before it doesn't.
I could look at the file size but this changes time to time.

If I look to
the document properties, the extracted file contains my

properties (eg.
title of my program) but the compressed file doesn't. If I

could read only
one property, I could see if I get the compressed or extracted

file.

Any help is appreciated!
Thanks
Jos Vens




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Get File Properties

Hi Chip,

thanks, but this is no compromise for me. I can't ask to my customers to
set this reference on. I have now solved the problem by setting the
attribute of the zipped file to read only and the attribute of the unzipped
is read/write. So if XP unzips, i have an attribute of 32 (GetAttr in VBA),
if it is more (33) it is zipped. Is my way of thinking correct?

Thanks
Jos

"Chip Pearson" schreef in bericht
...
Jos,

See the "Document Properties of Close Files" at
http://www.cpearson.com/excel/docprop.htm .


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Jos Vens" wrote in message
...
Hi,

I just read the postings of getting the file properties of a

opened
workbook. I'd like to know if it is possible (eg via API) to

get the file
properties of a CLOSED file.

I have a zipped file on my website which my clients can

download. However,
in Windows WP, it decompresses automatically, in versions

before it doesn't.
I could look at the file size but this changes time to time.

If I look to
the document properties, the extracted file contains my

properties (eg.
title of my program) but the compressed file doesn't. If I

could read only
one property, I could see if I get the compressed or extracted

file.

Any help is appreciated!
Thanks
Jos Vens






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File Properties TerryTutor Excel Discussion (Misc queries) 2 August 30th 07 06:06 PM
File Properties ALEX Excel Discussion (Misc queries) 1 February 8th 07 02:47 PM
File Properties Annie Excel Discussion (Misc queries) 1 April 20th 06 08:27 PM
File Properties Andrew Excel Discussion (Misc queries) 2 August 19th 05 01:23 PM
How do I get the file properties? Guy Cohen Excel Programming 4 January 30th 04 09:31 AM


All times are GMT +1. The time now is 07:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"