ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Alternative to ShellExecute (https://www.excelbanter.com/excel-programming/405180-alternative-shellexecute.html)

[email protected]

Alternative to ShellExecute
 
Hi-
I have a situation where I wish to call a file and I don't think
ShellExecute is going to work.

Specifically, the file I want to call usually opens with Wordpad of
Notepad, but it is actually a set of scripts that are run by a
specific retail systems program.

So the question is, how do I specify the program I want to run when I
execute a call on the file?

Thanks

Steve Yandl

Alternative to ShellExecute
 
You will need to know something about the command line for launching your
'specific retail systems program'. Hopefully, there is a command line that
includes listing the path and file name for your script file as one of the
arguments. Then you use ShellExecute with the command line that starts your
retail systems program and feeds it your script.

Steve



wrote in message
...
Hi-
I have a situation where I wish to call a file and I don't think
ShellExecute is going to work.

Specifically, the file I want to call usually opens with Wordpad of
Notepad, but it is actually a set of scripts that are run by a
specific retail systems program.

So the question is, how do I specify the program I want to run when I
execute a call on the file?

Thanks





All times are GMT +1. The time now is 08:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com