Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Shortcut on Desktop In Code (not during install)
Message
From
24/06/2003 09:10:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00801769
Message ID:
00803252
Views:
40
You are correct. Drivespec contains the drive letter our app resides on.

>Thanks Tracy for the code. I just roughly studied it. It opens an existing pif probably a template pif, modifies the var to which the pif details are stored and resaves it as a new name. Hope this is what it does. What does DriveSpec contain? the full pathname?
>
>Please correctme if I am wrong.
>
>Thanks, appreciating your help.
>
>>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"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform