forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


file date and time
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sat Nov 23, 2002 10:40 pm    Post subject: sorry Reply with quote

sorry skit3000


i was posting the same time you were...i was talking to mac in my last post
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Nov 23, 2002 10:43 pm    Post subject: Reply with quote

BTW, the current time is ALWAYS gonna be later
than the file creation time...

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sat Nov 23, 2002 10:44 pm    Post subject: Reply with quote

Oooooops! Sad Sad
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sat Nov 23, 2002 10:45 pm    Post subject: ahhhhhh Reply with quote

ahhhh k yea just i try the way you guys saids and it still goes to info1 no mater what

but yea i know what you mean mac...hummmm
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Nov 23, 2002 10:45 pm    Post subject: Reply with quote

Yours is better, Mac!
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Nov 23, 2002 10:48 pm    Post subject: Reply with quote

Try this to check the DATE only, not the time:
Code:

%T = @datetime(yyyymmdd)
%S = @datetime(yyyymmdd, @file(C:\config.sys,T))
INFO T= %t@cr()S= %s

if @greater(%T,%S)
   rem *** Do something ***
   info info1
else
   rem *** Do something else
   info info2
end

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sat Nov 23, 2002 10:48 pm    Post subject: so Reply with quote

so can that be fixed? i don't want to go just by file size Sad
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Nov 23, 2002 10:50 pm    Post subject: Reply with quote

OOPS - Use your filename in my last example...
_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sat Nov 23, 2002 10:51 pm    Post subject: yea Reply with quote

but going BY date won't really work cause if a file is made on the same day BUT the file size don't chnage BUT the file does have new data in it...then that won't work right ( if i'am following you here)
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Nov 23, 2002 10:55 pm    Post subject: Reply with quote

OK, you need to record the file creation time,
then periodically compare the recorded time
to the file's creation time. And update the
recorded time (if it's different) for the next
comparison.

The current time has nothing to do with it...

Lol, I just figured out what you're trying to do...

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Nov 23, 2002 10:57 pm    Post subject: Reply with quote

Now I'm loosing it... Confused
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!


Last edited by Skit3000 on Sat Nov 23, 2002 10:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sat Nov 23, 2002 10:58 pm    Post subject: ahhhhhhhh Reply with quote

ahhhhhhh so i can uses anything to recorded it right? meaning ini file or other txt right?
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Nov 23, 2002 11:38 pm    Post subject: Reply with quote

Sure. The file type doesn't matter.

Or you could use a registry key...

Or if the program runs all the time, you could store
it in a var when the program starts. Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sat Nov 23, 2002 11:51 pm    Post subject: :) Reply with quote

well to save to a file i'am going try this

Code:

LIST CREATE,1
list savefile,1, whatever.txt 


BUT problem is if firgureing out HOW to get the time and date the file was made then have it save it.or do like you siad store it into a var...hummmm
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Nov 23, 2002 11:54 pm    Post subject: Reply with quote

__________________________________________________________________________________________________________________________
Code:

LIST CREATE, 1
LIST ADD, 1, @file(c:\test\test.txt, T)
LIST SAVEFILE,  1, c:\whatever.txt


BTW, using the float like this example does will prolly
be easiest... Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group