vl-file-systime can use to getthe edittime of a file if the file is not currently use.
something like this:
command: (vl-file-systime "c:/Documents and Settings/Administrator/desktop/pass.dwg")
(2015 1 4 8 15 4 21 718)
but if the file need to check edittime is currently use,it return nil
something like this:
command: (vl-file-systime "c:/Documents and Settings/Administrator/desktop/pass2.dwg")
nil
althoutht I can use the copy command to make a bak and check the bakfile's edittime
like this:
command: (copyfile "c:/Documents and Settings/Administrator/desktop/pass2.dwg"
"c:/Documents and Settings/Administrator/desktop/pass3.dwg")
0
command: (vl-file-systime "c:/Documents and Settings/Administrator/desktop/pass3.dwg")
(2015 1 4 8 15 5 31 531)
is there any convinient way to get the file's edittime (no wether the file is opening or not)
I search the forum and find this
http://www.theswamp.org/index.php?topic=43559.msg488184#msg488184命令: _qsave
命令: (rtos (getvar "cdate") 2 20)
"20150108.15283367"
命令: (rtos (lastmodified (getvar "dwgname")) 2 20)
"2457031.644756944"
命令: (rtos (getvar "date") 2 20)
"2457031.645215197"
the problem solve.
thx
I try to remove this.
and it return
You cannot delete your own topics in this board. Check to make sure this topic wasn't just moved to another board.