Christian:
> The file date etc. are not so easy to determine in VEDIT.
>
> You can have a look at the thread "FileInfo.vdm" in the forum
> 'vedit-macros' from 16 May 2001.
thanks for the tipp!
You are right: it's much easier to do it via the sys() command. I have
exchanged the file_save_as() command against the TakeCommand32
copy command, which unlike Win98 has a /update switch (what about
XP: has it got command extensions like that?). Now everything goes
well.
Fritz
-------------------------------
// File save a:\{PATHNAME} -> c:\{PATHNAME} and vice versa
if(#1==5){ //if button #5
#20=BufNum
regset(101,PATHNAME) //put pathname into TReg 101
Bufswitch(buffree)
regins(101)
BOF()
if(search("a:\",noerr)==1) // switch drive letter
{r("a:\","c:\",BEGIN)}
else {r("c:\","a:\",BEGIN)}
BOF()
RCB(102,0,EOL_Pos) //put new pathname to TReg 102
Buf_Quit(ok)
Buf_switch(#20)
sys("c:\tc2\tcmd32 copy/u |@(101) |@(102 &
exit)",SIMPLE+NOWAIT) //call tcmd32 copy/update and exit
Breakout(extra)}
Dr. Friedrich Heberlein, Akad. Direktor
Seminar für Klassische Philologie
KU Eichstaett
Universitaetsallee 1
D-85071 Eichstaett / Bayern
email: sla019@...
Tel.: +49 8421 93 1544 / 93 3544
|
|