sorry, man
i dont understand, i run successfully from totalcommander's commandline
but now i test it with cmd.exe and its BAD.....
see the code and replace this
;invoke revstr,addr S_Launchdir,addr buffer
;invoke InString,1,addr buffer, addr backslash
;mov esi,offset buffer
;add esi,eax
;dec esi
;invoke revstr,esi,addr S_Launchdir
to this:
mov esi,offset S_Launchdir
invoke lstrlen,offset S_Launchdir
add esi,eax
.while byte ptr [esi]!="\"
dec esi
.endw
inc esi
mov byte ptr [esi],0
and now works in cdm.exe also
p2kcopy /a/astrix.gif a.gif this will place a.gif to the actual folder IMMEDIATELY , hey whats a speed......
ps: that damned revstr (reverse a string) why wrong in cmd exe? who knows?
zip file updated:
http://www.el-co.hu/dl/p2kcopy.zip