Hi,
I have searched but just don't seem to be able to get an answer.
I'm trying to create a shortcut using a .bat file.
It runs a program which in effect runs an access applicatioin.
However, I want to supply command argumants to the target of the shortcut.
The following contents of the batch work fine.
However I want to add the comman arguments on the end and am Having trouble.
here's the script that works
@echo off
echo Set oWS = WScript.CreateObject("WScript.Shell") > P:\docs\h\g\h\hgh1\1\CreateShortcut.vbs
echo sLinkFile = "P:\docs\h\g\h\hgh1\1\Review.lnk" >> CreateShortcut.vbs
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> CreateShortcut.vbs
echo oLink.TargetPath = "\\pts-app\partner\PTS-Apps\Partner_Review.accdb" >> CreateShortcut.vbs
echo oLink.Save >> CreateShortcut.vbs
cscript CreateShortcut.vbs
del CreateShortcut.vbs
As you can see, the target path is :- \\pts-app\partner\PTS-Apps\Partner_Review.accdb
However, I need it to be :- \\PTS-APP\Partner\PTS-Apps\Partner_Review.accdb /cmd "XXX000000000031|1|"
Any ideas on how to generate that. The quotes are driving me mad.