PC Review


Reply
Thread Tools Rate Thread

command line coding

 
 
Stanley
Guest
Posts: n/a
 
      13th Oct 2008
I run the following code from a command button and I have no problem opening
up HSFinancialMgt.mdb. The problem is I want to add
a command line function to this and I don't know how to code it.

Shell """C:\Program Files\Microsoft Office\Office10\MSAccess.exe"" " &
"""c:\HomestayDevelopmentNY\HSFinancialMgt.mdb""", vbNormalFocus

I can put the following code into the run box and have no problem. How can I
get this into my program code?

"C:\Program Files\Microsoft Office\Office10\MSAccess.exe"
"c:\HomestayDevelopmentNY\HSFinancialMgt.mdb" /cmd 12345

I think this is a matter of setting quotations marks, but I tried everything
with no success.
Thanks,
Stan
 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      13th Oct 2008
"Stanley" <(E-Mail Removed)> wrote in message
news:9DBF950C-7F7A-4416-9845-(E-Mail Removed)...
>I run the following code from a command button and I have no problem
>opening
> up HSFinancialMgt.mdb. The problem is I want to add
> a command line function to this and I don't know how to code it.
>
> Shell """C:\Program Files\Microsoft Office\Office10\MSAccess.exe"" " &
> """c:\HomestayDevelopmentNY\HSFinancialMgt.mdb""", vbNormalFocus
>
> I can put the following code into the run box and have no problem. How can
> I
> get this into my program code?
>
> "C:\Program Files\Microsoft Office\Office10\MSAccess.exe"
> "c:\HomestayDevelopmentNY\HSFinancialMgt.mdb" /cmd 12345
>
> I think this is a matter of setting quotations marks, but I tried
> everything
> with no success.



Try:

Shell _
"""C:\Program Files\Microsoft Office\Office10\MSAccess.exe"" " & _
"""c:\HomestayDevelopmentNY\HSFinancialMgt.mdb"" /cmd 12345", _
vbNormalFocus

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line utility to list processes with the "command line that was used to start the process" flahmeshess Microsoft Windows 2000 5 12th Oct 2006 02:46 AM
Command Line Arguments for a Non Command Line Program? CMG Microsoft VB .NET 6 30th Dec 2003 10:51 PM
Command line error D2016 : '/RTC1' and '/clr:initialappdomain' command-line options are incompatible Lars Grøtteland Microsoft Dot NET Framework 1 15th Oct 2003 09:35 AM
Command line error D2016 : '/RTC1' and '/clr:initialappdomain' command-line options are incompatible Lars Grøtteland Microsoft Dot NET 1 15th Oct 2003 09:35 AM
Command line error D2016 : '/RTC1' and '/clr:initialappdomain' command-line options are incompatible Lars Grøtteland Microsoft VC .NET 1 15th Oct 2003 09:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:53 PM.