I am trying write code in vbscript to create an icon on the Windows desktop for an Access database file that points to a workgroup file that is on a server. When I create the icon the target path changes from "/WRKGRP" to "\WRKGRP". I must be missing somthing in my code because I can't figure out what is causing it to change.
I am using the WshShell.CreateShotcut method and have created some variables and combined the them in the .TargetPath = line
The code look like this when the varibles are combined:
"c:\program files\microsoft office\office10\msaccess.exe" "c:\documents and settings\folder\mydb.mdb" /WRKGRP "x:\folder\secured.mdw" where x\folder is the server path of the workgroup file.
When the icon is created the /WRKGRP changes to \WRKGRP and the icon will not work.
Any ideas?
I am using the WshShell.CreateShotcut method and have created some variables and combined the them in the .TargetPath = line
The code look like this when the varibles are combined:
"c:\program files\microsoft office\office10\msaccess.exe" "c:\documents and settings\folder\mydb.mdb" /WRKGRP "x:\folder\secured.mdw" where x\folder is the server path of the workgroup file.
When the icon is created the /WRKGRP changes to \WRKGRP and the icon will not work.
Any ideas?