I am a novice at this, so please forgive me if the below isn't up to standards. I have the following .vbs file that I am running with cscript to create a desktop shortcut.
set WshShell = WScript.CreateObject("WScript.Shell" )
strDesktop = WshShell.SpecialFolders("Desktop" )
set oShellLink = WshShell.CreateShortcut(strDesktop & "\FCIV.lnk" )
oShellLink.Arguments = "/k ""C:\Program Files (x86)\FCIV\FCIV.exe ""/? "
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "C:\Windows\System32\Shell32.dll,22"
oShellLink.Description = "FCIV"
oShellLink.WorkingDirectory = "C:\Program Files (x86)\FCIV"
oShellLink.Save
What I can't figure out is how to combine the oShell.Link.Arguments line with the mode command. I am trying to do something like this:
oShellLink.Arguments = "/k ""C:\Program Files (x86)\FCIV\FCIV.exe ""/? " "&& " "/k ""mode con: cols=80 lines=50 "
I've tried a few different combinations of things and tried to use AND also, but can't seem to get it to work.
Any ideas.
Thanks to all for your help.