Shell command doesn't work under WinNT 
Author Message
 Shell command doesn't work under WinNT

Converting an Access 97 app from Win95 to NT;

it has the following shell command which opens another app.

    MyCommand = "COMMAND.COM /C " & Chr(34) _
        & strPathToQVPlusExe & Chr(34) _
        & " " & Chr(34) & strPathAndFile & Chr(34)
    TaskDone = Shell(MyCommand, 0)

This command works under Win95 but not under NT.
No DOS, right?

Can someone tell me how to do this under NT?

TIA
--
Mark Hammer
Lake Oswego, ORegon

To E-Mail me, remove SPAM from my E-Mail address.



Thu, 30 Mar 2000 03:00:00 GMT  
 Shell command doesn't work under WinNT

Well under NT the COMMAND.COM has been replaced by CMD.EXE who will simulate
a dos session :

To have his parameters, type cmd /? |more in a dos box.

Normally all the COMMAND.COM parameters are included.

I hope this will help.
Palmaerts Danny

Quote:

>Converting an Access 97 app from Win95 to NT;

>it has the following shell command which opens another app.

>    MyCommand = "COMMAND.COM /C " & Chr(34) _
>        & strPathToQVPlusExe & Chr(34) _
>        & " " & Chr(34) & strPathAndFile & Chr(34)
>    TaskDone = Shell(MyCommand, 0)

>This command works under Win95 but not under NT.
>No DOS, right?

>Can someone tell me how to do this under NT?

>TIA
>--
>Mark Hammer
>Lake Oswego, ORegon

>To E-Mail me, remove SPAM from my E-Mail address.



Fri, 31 Mar 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Why doesn't this Shell command work?

2. TreeView Control doesn't work on some WinNT systems

3. shell - why doesn't this work

4. WScript.Shell Run Doesn't Work???

5. Wscript.shell Run doesn't work

6. Shelling .HTM under NT Doesn't Work

7. Edit links command doesn't always work

8. LIKE doesn't work in SQL-command :-(

9. BEEP command doesn't work

10. MCI Command Next doesn't work HELP!

11. fRefreshLinks Doesn't work if path doesn't exist

12. Kill/Name function don't work after shell commands

 

 
Powered by phpBB® Forum Software