Question: SysCmd function translation into VB 
Author Message
 Question: SysCmd function translation into VB

It gets its info from code inside of Access.... which has an
easy time getting its own path while its running.

In other words, even you had magical access to msaccess.exe
source code, it would not help you here.

--
MichKa

-------------------------------------
don't send questions by e-mail unless
you're paying for it. (TANSTAAFL!) :-)

random junk of dubious value and
replica error and problem fixing at:
http://www.*-*-*.com/


Quote:
> Access has got a powerful SysCmd function which I use to
shell
> another copy of Access , like so:

> EXE_Path =  SysCmd(acSysCmdAccessDir) & "msAccess.Exe "

> Works well!!

> Anyone know where this command gets its information?

> I need to port the commnad to Shell Access from VB.

> many thanx

> Nolan C



Thu, 07 Feb 2002 03:00:00 GMT  
 Question: SysCmd function translation into VB
You can use the ShellExecute API call. For an example, look for "Start
an app with ShellExecute" in the API section of Dev's site at:
http://www.mvps.org/access

 -- Andy

Quote:

>Access has got a powerful SysCmd function which I use to shell
>another copy of Access , like so:

>EXE_Path =  SysCmd(acSysCmdAccessDir) & "msAccess.Exe "

>Works well!!

>Anyone know where this command gets its information?

>I need to port the commnad to Shell Access from VB.

>many thanx

>Nolan C



Thu, 07 Feb 2002 03:00:00 GMT  
 Question: SysCmd function translation into VB
Access has got a powerful SysCmd function which I use to shell
another copy of Access , like so:

EXE_Path =  SysCmd(acSysCmdAccessDir) & "msAccess.Exe "

Works well!!

Anyone know where this command gets its information?

I need to port the commnad to Shell Access from VB.

many thanx

Nolan C



Fri, 08 Feb 2002 03:00:00 GMT  
 Question: SysCmd function translation into VB
found the magical key.

HKEY_CLASSES_ROOT\CLSID\{8CC49940-3146-11CF-97A1-00AA00424A9F}

This key contains the full name and path of the access exe.  Re-installed
access
on a test machine to a totally different dir, and the key above reflects the
new
location.

cheers,
Nolan

Quote:

>It gets its info from code inside of Access.... which has an
>easy time getting its own path while its running.

>In other words, even you had magical access to msaccess.exe
>source code, it would not help you here.

>--
>MichKa

>-------------------------------------
>don't send questions by e-mail unless
>you're paying for it. (TANSTAAFL!) :-)

>random junk of dubious value and
>replica error and problem fixing at:
>http://www.trigeminal.com



>> Access has got a powerful SysCmd function which I use to
>shell
>> another copy of Access , like so:

>> EXE_Path =  SysCmd(acSysCmdAccessDir) & "msAccess.Exe "

>> Works well!!

>> Anyone know where this command gets its information?

>> I need to port the commnad to Shell Access from VB.

>> many thanx

>> Nolan C



Fri, 08 Feb 2002 03:00:00 GMT  
 Question: SysCmd function translation into VB
Certainly. This is the key for the Access.Application.8
CLSID. I was simply saying that (a) the code for the SysCmd
was not available to anyone outside MS, and (b) even if (a)
were not true, the code would not help. Thats all.

Assuming Access is registered, that key should always be
present. It might be morr robust to look up
Access.Application.8 to get the CLSID instead of hardcoding
it, which will make it easier to convert if and when you
change versions of Access.

--
MichKa

-------------------------------------
don't send questions by e-mail unless
you're paying for it. (TANSTAAFL!) :-)

random junk of dubious value and
replica error and problem fixing at:
http://www.trigeminal.com


Quote:
> found the magical key.

HKEY_CLASSES_ROOT\CLSID\{8CC49940-3146-11CF-97A1-00AA00424A9
F}
Quote:

> This key contains the full name and path of the access
exe.  Re-installed
> access
> on a test machine to a totally different dir, and the key
above reflects the
> new
> location.

> cheers,
> Nolan




Quote:
> >It gets its info from code inside of Access.... which has
an
> >easy time getting its own path while its running.

> >In other words, even you had magical access to
msaccess.exe
> >source code, it would not help you here.

> >--
> >MichKa

> >-------------------------------------
> >don't send questions by e-mail unless
> >you're paying for it. (TANSTAAFL!) :-)

> >random junk of dubious value and
> >replica error and problem fixing at:
> >http://www.trigeminal.com



> >> Access has got a powerful SysCmd function which I use
to
> >shell
> >> another copy of Access , like so:

> >> EXE_Path =  SysCmd(acSysCmdAccessDir) & "msAccess.Exe "

> >> Works well!!

> >> Anyone know where this command gets its information?

> >> I need to port the commnad to Shell Access from VB.

> >> many thanx

> >> Nolan C



Fri, 08 Feb 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Undocumented SysCmd Function

2. Undocumenter SysCmd Function !!!

3. Wordbasic translation question: Please Help

4. A few BBC Basic to VB5 translation questions

5. C++ translation question

6. C++ translation question

7. Language Translation and VB.NET

8. Help with translation c# -> vb

9. PLease help with a C++ to VB translation

10. Translation Problems (C# to VB)

11. whats the VB translation ?

12. Basica to VB translation

 

 
Powered by phpBB® Forum Software