viewpoint-particle

Author Topic: Run command  (Read 2721 times)

weissenb

  • Newbie
  • *
  • Posts: 9
Run command
« on: September 25, 2013, 05:04:02 am »
Hi!

It may be so simple, but trying to start this command line programm I had problems

http://www.winsentmessenger.com/sent/help/

The winbatch file :
Run( "C:\Program Files (x86)\TOOLS\WinsentMessenger\winsent.exe", "'C.WEISSENBERGER' 'Gentlemen, the meeting will begin at 13:00'")

did not not work (and all permutations, too ;-).
But I know the solutions is easy :-)

Many thank, Christian

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: Run command
« Reply #1 on: September 25, 2013, 07:37:40 am »
I believe double quotes are required for command line parameters. Notice the use of single and double quotes in this line:

Code: Winbatch
Run( 'C:\Program Files (x86)\TOOLS\WinsentMessenger\winsent.exe', '"C.WEISSENBERGER" "Gentlemen, the meeting will begin at 13:00"')
Deana F.
Technical Support
Wilson WindowWare Inc.