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

Launching WinBatch and Other Apps
plus

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

Launching an App and Passing a File

Keywords:        double click launch run load word windows app

Problem:

User has written a batch file that calls up windows applications. The batch program is on the network and the software is on a local hard drive. The problem is that when you double click a document it should come up in Word. Word comes up but the document is not loaded.

Solution:

It sounds like user has a batch file (or a compiled batch file) connected with the double click. But somehow the proper information regarding the file is not being passed to Word. Either the batch file is not reading Param1 and getting the name of the double-clicked file, or somehow word cannot find it, probably because the directory information got lost. She needs something like

TheRealFileName=strcat(DirGet(),Param1)

Run("WORD.EXE",TheRealFileName)

This will get the xxxx.doc file name passed via windows to the batch file, and then stick the current directory name in front of it so that WORD can always find it.


Article ID:   W13273
Filename:   Launching an app and passing a file.txt
File Created: 1999:04:15:16:52:54
Last Updated: 1999:04:15:16:52:54