Search found 9 matches

by wandila
Mon Jul 24, 2006 7:39 am
Forum: Technical / Scripting
Topic: Help ! I want read always the last report saved
Replies: 11
Views: 12116

The correct is: VBSTART Function LastCreated(folderspec,filespec) Dim fso, f, f1, fc, s, lastfiledate, latestfile lastfiledate = 0 Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFolder(folderspec) Set fc = f.Files For Each f1 in fc if InStr(f1.Name,filespec) > 0 then If f1.DateC...
by wandila
Mon Jul 24, 2006 7:29 am
Forum: Technical / Scripting
Topic: Help ! I want read always the last report saved
Replies: 11
Views: 12116

I found the problem : some files have the same created date..then it take the first of these files. the script need a second condition with last file modified
by wandila
Mon Jul 24, 2006 7:10 am
Forum: Technical / Scripting
Topic: Help ! I want read always the last report saved
Replies: 11
Views: 12116

This script still dont work ...sometimes it takes the file with last date and sometimes it takes an old file... :?
by wandila
Mon Jul 24, 2006 4:46 am
Forum: Technical / Scripting
Topic: Help ! I want read always the last report saved
Replies: 11
Views: 12116

Thank you very much again :D
by wandila
Sun Jul 23, 2006 9:51 pm
Forum: Technical / Scripting
Topic: Help ! I want read always the last report saved
Replies: 11
Views: 12116

There is a problem in this script. Sometimes it doesn't take the last file. It must take the last writed in hard disk and dont the last modified.
May you rewrite , pls ? :D
Thank you for your time
by wandila
Sat Jul 22, 2006 9:05 am
Forum: Technical / Scripting
Topic: Help ! I want read always the last report saved
Replies: 11
Views: 12116

It's perfect ! :D
by wandila
Sat Jul 22, 2006 8:39 am
Forum: Technical / Scripting
Topic: Help ! I want read always the last report saved
Replies: 11
Views: 12116

Thank you very much ! :D
I will test soon
Regards
by wandila
Sat Jul 22, 2006 8:04 am
Forum: Technical / Scripting
Topic: Help ! I want read always the last report saved
Replies: 11
Views: 12116

There are others files in directory. I want parse the names , but i want take just the main line ignoring the date and hour in name. Then i take the most updated file with "Updated Report - 'xxxxxxxx'" in name and read the file. Example: Updated Report - 'Car Sales' - Date 2006.7.22 - Hour 15.10.txt...
by wandila
Sat Jul 22, 2006 7:31 am
Forum: Technical / Scripting
Topic: Help ! I want read always the last report saved
Replies: 11
Views: 12116

Help ! I want read always the last report saved

I want read always the last report saved and send to a variable. These reports are saved all time. Example: Updated Report - 'Car Sales' - Date 2006.7.22 - Hour 15.10.txt Updated Report - 'Car Sales' - Date 2006.7.22 - Hour 16.11.txt Updated Report - 'Car Sales' - Date 2006.7.22 - Hour 16.35.txt Upd...
Sign up to our newsletter for free automation tips, tricks & discounts