Page 2 of 2 <12
Topic Options
#159493 - 2006-03-20 03:47 PM Re: problem with getfiletime()
ray2heavy Offline
Fresh Scripter

Registered: 2006-03-15
Posts: 11
shouldn't that be c: or d: (unless it is a mapped drive)

it is indeed a mapped drive

Top
#159494 - 2006-03-20 03:52 PM Re: problem with getfiletime()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Quote:

Nay,

2 would be "File not found"

what happens if you run this :

Code:

break on

$smsw_date_time=GetFileTime("y:\program files\smartswitch\smartswitch.dfn")
@error ?
$smsw_date_time ?

get $

exit 0



[Note the g in proram files ]




So this posted code should have worked already for ya, eh ?
_________________________



Top
#159495 - 2006-03-20 03:57 PM Re: problem with getfiletime()
ray2heavy Offline
Fresh Scripter

Registered: 2006-03-15
Posts: 11
yea, strange.

another strange thing is that i had an IF EXISTS() line before this to make sure i caught any file not found errors before it tried to do it.

oh well, as long as it works, i must have left out something stupid or something.

thank you very much

Top
#159496 - 2006-03-20 04:05 PM Re: problem with getfiletime()
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Quote:


....
can i assume we cant use variable location/file name with this function
....





No.

Code:

$path = "c:\windows\"
$rc = GetFileTime($path + "clock.avi")
?$rc
Sleep 5



Works just fine.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 905 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.031 seconds in which 0.014 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org