Re: Using Shell Command
- From: "Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 17:43:17 -0400
It's more likely that the short cut has its Start in property set to the
folder. If that's not done, then you really can't be sure where the program
is going to look for the file.
Easiest will probably be:
Test = Shell("C:\Directory\File.EXE C:\Directory\Config1.XXX")
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Klatuu" <Klatuu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DB026447-0747-414B-B27D-59E328A349F6@xxxxxxxxxxxxxxxx
> Look at the command line in your short cut to see if there are any command
> line options included. If there are, you will have to add them to your
> shell
> statement. What does this File program do, anyway?
>
> "Gibson" wrote:
>
>> Using a Access2003 database in WinXP I am trying to shell over to a third
>> party software to run it. I am using the code line.
>> Dim Test
>> Test = Shell("C:\Directory\File.EXE Config1.XXX")
>>
>> The 3rd party software is installed in the same directory as the
>> database.
>> The problem is when the File.Exe runs it looks for other files to load
>> and
>> claims it can't find them. It claims it can't find file Config1.XXX when
>> it
>> is there. Apparently File.exe thinks it is running somewhere else than in
>> its directory. When I create a shortcut on the desktop to run the
>> File.EXE
>> it works fine. Is there a way to shell to a desktop shortcut? I'd rather
>> not have my clients have to alt-tab out of the database to the desktop to
>> run this program
>>
>> Thanks
>>
>>
>>
.
- Follow-Ups:
- Re: Using Shell Command
- From: Douglas J. Steele
- Re: Using Shell Command
- References:
- Using Shell Command
- From: Gibson
- RE: Using Shell Command
- From: Klatuu
- Using Shell Command
- Prev by Date: Security issues when trying to convert a 97db to Access 2003?
- Next by Date: Re: Can I open a .pdf file in Access using a table column with link in
- Previous by thread: RE: Using Shell Command
- Next by thread: Re: Using Shell Command
- Index(es):
Relevant Pages
|