Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH script to create a shortcut doesn't work on Vista
Message
 
 
To
13/04/2007 14:35:26
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01215705
Message ID:
01215997
Views:
17
Emerson,

Sorry for the off-topic, but can you please provide a link to your class? Did you publish the source code? I can not find it at http://www.gotdotnet.com/codegallery/news/newsitem.aspx?id=0826d7a6-1dab-4a71-8e70-f2170c3c1661&newsId=8833c273-dbc5-4e77-9dd3-b2683a09d5b8

Is this http://weblogs.foxite.com/emersonreed/archive/2006/07/25/Outlook2003Bar_control.aspx the latest?

>I'm using the following script to create a shortcut and it works in all Windows except Vista.
>Someone could help me to know what's happening?
>
>
>Local loWSH As WScript.Shell, lcStartupDir, loLnk
>loWSH = Createobject("WScript.Shell")
>lcStartupDir = loWSH.SpecialFolders("AllUsersStartup")
>loLnk = loWSH.CreateShortcut(Addbs(lcStartupDir) + "Auto Backup - Folhamatic.lnk")
>loLnk.TargetPath = "Y:\folhawin\backup\autobkp\autobkp.exe"
>loLnk.WorkingDirectory = "Y:\folhawin\backup\autobkp"
>loLnk.Save()
>Store Null To loLnk, loWSH
>
>
>PS: The active user has adminstrator rights.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform