|
#1
|
|||
|
|||
|
retrieve information from a files properties
Hello.
is it possible to retrieve the information from a files properties, the information I am reffering to is the information you see when you right clik a file and chose advance/simple or summary. if if so , how is this done? allso how to get ams to display this information in a paragraph box thank you. Last edited by Autoplayit07; 11-28-2007 at 10:33 AM. |
|
#2
|
|||
|
|||
|
Look up the File.GetAttributes action in the help file.
__________________
Dermot AMS Add-ons - xDialog.com A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine. |
|
#3
|
|||
|
|||
|
hey thank you Dermot.
but i tried to retrieve the infotmation and put it into a text file like this Code:
result = File.GetAttributes(_ProgramFilesFolder.."\\AutoPlay Media Studio 7.0\\ams70.exe")
TextFile.WriteFromString("C:\\MyFile.txt", ""..result, true);
something like that. my code looks to simple, am pretty sure i am missing somthing here. |
|
#4
|
|||
|
|||
|
If you read the help file topic, it clearly states that it returns a table of values. So you have to access the info return like this
CreationDate = result.CreationDate ReadOnly = result.ReaOnly and so on.... From the help file. Quote:
__________________
Dermot AMS Add-ons - xDialog.com A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine. |
|
#5
|
|||
|
|||
|
Hi Dermot!
thank for pointing that out, i know what you mean, but i have a hard time understanding how to set up a table. is there any good and easy table example you could point me to, i've searched the forums ,but i can't find a easy example,that explains the details of how to setup a table, i've allso looked in the tutorials for an tutorial on this. allso the attributes i would like to retrieve into the table is not the creation date. or size of mb and sutge. its more like the information about the file. what media type and sutge. hope i am not asking to much here. i am new to this and i would realy like to learn,but some of the scripting is hard to learn ,what to combine with what and sutge. thank you. |
|
#6
|
|||
|
|||
|
Tables are explained very well in the help file but in this case you don't have to create a table. The action returns a table.
if you do this: Code:
result = File.GetAttributes(_ProgramFilesFolder.."\\AutoPlay Media Studio 7.0\\ams70.exe")
__________________
Dermot AMS Add-ons - xDialog.com A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine. |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unable to find software? | NigelLacey | Visual Patch 2.0 | 4 | 10-11-2005 11:35 AM |
| method to index/compare user's files for update? | intel352 | Setup Factory 6.0 | 0 | 01-15-2003 04:08 PM |
| INFO: Why Files are Renamed in the DATA Folder | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-24-2002 04:36 PM |
| HOWTO: "Hide" Externally Referenced Files | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-23-2002 04:19 PM |
| Files in Config.SYS the Properties the File.PIF | Bene | Setup Factory 6.0 | 0 | 02-18-2002 08:21 PM |
All times are GMT -6. The time now is 02:55 AM.








Linear Mode

