How to use shortcut function?

Discuss PocketC for CE (including Desktop Edition)

Postby WIrek on Fri Oct 31, 2003 12:57 pm

If I try
shortcut("\\Windows\\Start Menu\\Programs\\Shortcut.lnk","\\Programs\\something.exe")
this function works fine- creates link and the link works.
But after
shortcut("\\Windows\\Start Menu\\Programs\\Shortcut.lnk","\\My Documents\\something.exe")
shortcut("\\Windows\\Start Menu\\Programs\\Shortcut.lnk","\\My Documents\\")
it only creates link but it is broken. It has no icon and Windows displays "cannot find My or its components" message. I tried to change it to
shortcut("\\Windows\\Start Menu\\Programs\\Shortcut.lnk","\\My%20Documents\\")
and it created link with proper icon, but when I try to run this link it executes PocketC Shell and displays "no proper applet found" message.
What's wrong with it? Why the first parameter accepts space and the second doesn't? Should I format the path some special way?
Posts: 2
Joined: Tue Jun 03, 2003 8:39 am

Postby stanley602 on Sun Feb 12, 2006 12:18 pm

Dunno, but try MYDOCU~1.
This is the way DOS would handle it, but I dont know about CE or whatever you're on.
It's worth a try.

The pixels are alive! Death to the pixels!
The pixels are alive! Death to the pixels!
Posts: 12
Joined: Sat Feb 11, 2006 6:35 pm
Location: United Kingdom

Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 1 guest