WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Launch Script from SendTo


Question:

I wish to create a winbatch script that will accept input via the SEND TO menu. The idea is to right-click on a file and have a WinBatch script available to process the file. (I only thought of using Send To as the simplest way of accomplishing that. If there's a better way, please advise)

I created this brief experiment, placed the wbt file in the SEND TO menu and sent a file to it (via Right-Click--SEND TO). The result was Nada. It would appear that SEND TO did not cause the wbt script to launch...?

;Beginning of CheckParams.wbt
Message("WB started with %param0% params.","The file sent to WB is: %param1%")
;End of CheckParams.wbt
Time to seek advice!

Answer:

Put the target wbt file in some other directory. <> Make a shortcut to it in the SendTo directory. (Hold down Shift and CTRL keys and drag wbt file to SendTo directory to make shortcut)

Edit shortcut in SendTo directory.

(use the "quotes too")


"c:\Program Files\WinBatch\System\winbatch.exe" "C:\someplaace\stuff\checkparams.wbt"

Then try it again
Article ID:   W16475
File Created: 2005:02:18:12:20:52
Last Updated: 2005:02:18:12:20:52