Sure but I am not sure that it will help you. It modifies a .pif file and only works in Win95/Win95 because it relies on the os directory being c:\windows and the desktop directory being located there. I'm in the process of changing it for the VFP8 app to create the lnk and store it in the desktop directory where-ever that may be in the different os versions but I got sidetracked yesterday with other emergencies and didn't get it done yet. I'm hoping to get it done today.
For what it is worth, here is the older FPD26 code:
x=fopen('rackf.pif')
J=FREAD(x,2048)
z=0
DO WHILE .T.
z=z+1
dr=AT("F:",j)
IF dr=0 OR z = 100
EXIT
ENDIF
j = LEFT(j,dr-1)+DriveSpec+SUBSTR(j,dr+2)
ENDDO
=FCLOSE(X)
x=FCREATE("C:\WINDOWS\DESKTOP\ProRack.pif")
=FWRITE(x,j)
=fclose(x)
>Hi Tracy,
>
>I was just browsing this thread and I notice this
>
>>(in FPD26 we used to do it by creating a .pif file using fcreate and storing it in c:\windows for win95/98 users)
>
>Could you share your code regarding this. Right now for now for all my DOS application the shortcuts are created manually.
>
>This would be a great addition.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"