2016-09-15 3 views
0

で私が作成したいショートカットをショートカットを作成する方法:ように、複数のターゲット

"C:\プログラムファイル\ VICEVERSAプロ\ ViceVersa.exe"「C:\ waseefur.rahman \ドキュメント\ユーザー\その逆プロ\テスト3.fsf」/ autocompare私は以下のようにコーディングしてしようとしている

Dim shortcutPathName As String = "E:\VVTest\Z Create Shortcut" & "\MyShortcut.lnk" 
Dim WshShell As WshShell = New WshShell 
Dim MyShortcut As IWshRuntimeLibrary.IWshShortcut 

MyShortcut = CType(WshShell.CreateShortcut("E:\VVTest\Z Create Shortcut" & "\MyShortcut.lnk"), IWshRuntimeLibrary.IWshShortcut) 
MyShortcut.WorkingDirectory = "C:\Program Files\ViceVersa Pro" 
MyShortcut.TargetPath = "C:\Program Files\ViceVersa Pro\ViceVersa.exe" 
MyShortcut.Arguments = "c:\users\waseefur.rahman\documents\viceversa pro\test 4.fsf/autocompare" 

MyShortcut.Description = "VV Shortcut" 

MyShortcut.Save() 

私のように検索結果を取得しています:

"C:\プログラムファイル\ VICEVERSAプロ\ ViceVersa.exe" C:\ waseefur.rahman \ドキュメント\ユーザー\その逆のプロの\テスト4.fsf/autocompare

すなわち 、 "" なし

"C:\プログラムファイル\ VICEVERSAプロ\ ViceVersa.exe" "C:\ユーザー\ waseefur.rahmanの\ドキュメント\その逆のプロ\テスト3.fsf"/autocompare

しかし、私はとしてそれを必要とします

ご連絡ください。

答えて

0

あなたがそれらを必要とするエスケープ引用符を追加してみてください:

MyShortcut.TargetPath = """C:\Program Files\ViceVersa Pro\ViceVersa.exe""" 
MyShortcut.Arguments = """c:\users\waseefur.rahman\documents\viceversa pro\test 4.fsf""/autocompare" 
+0

多くのおかげで、私が試していると私は作品 を.... :) – Waseef

関連する問題