![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Execute command line switches from vbs I use the following three command lines extensively executing them from *.bat files or in the “RUN” line of a Wndows Scheduled Task. Command Line For Access Macro "Full Path To Access Executable" "Full Path To Access MDB" /x "Name of Access Macro" Command Line For Outlook "Full Path To Outlook Executable" /c "IPM.Note.Name of form" /a "Full Path To Attachment" Command Line For Docuanalyzer "Full Path To Docuanalyzer Program" "Full Path To File" "Full Path To Report Model" "Full Path To Output" I have been unsuccessfully trying to build a VBS file that will run them: Set wshShell = WScript.CreateObject ("WSCript.shell") wshShell.Run("Full Path To Access Executable" "Full Path To Access MDB" /x "Name of Access Macro") set wshShel = nothing Can someone point me to a reference or assist with a solution? My goal is to reduce numerous separate scheduled tasks to only several VBS files that will each hold all the command lines for each operation. Thanks in advance. -- Jeff C Live Well .. Be Happy In All You Do |
My System Specs![]() |
| | #2 (permalink) |
| Vista Home Premium 64 bit SP1 | Re: Execute command line switches from vbs I'm not big into WSH but from this site: wsh run I get the impress you need to concatenate everything into one string for the command line. If the command line params need parts to have double quotes then you need to see how the escape them or wrap the quotes in quotes... however vbs does it. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Explorer Command Line Switches | Vista General | |||
| Explorer Command Line Switches | Vista file management | |||
| command line switches of windows mail on vista | Vista mail | |||
| Application Command Line Switches | PowerShell | |||
| Execute from command line with environment variable in path | PowerShell | |||