Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: shortcuts search
The Snippet assumes that I am copying a link (SRCFILE) to a new link (TRGFILE).
FS=FileSize(SRCFILE) BINBUF=BinaryAlloc(FS) BinaryRead(BINBUF,SRCFILE) BinaryPoke(BINBUF,21,1) BinaryWrite(BINBUF,TRGFILE) BinaryFree(BINBUF)Offset 21 is 00 by default, 01 sets tracking off.
By the way, I haven't tried it, is there any reason why I can't do the following?
FS=FileSize(SRCFILE) BINBUF=BinaryAlloc(FS) BinaryRead(BINBUF,SRCFILE) BinaryPoke(BINBUF,21,1) BinaryWrite(BINBUF,SRCFILE) ;;i.e. write over the file I just read BinaryFree(BINBUF)
Article ID: W13858
Filename: Stop Shortcuts from Searching.txt
File Created: 1999:04:15:16:56:52
Last Updated: 1999:04:15:16:56:52