shell function

R

Richard

Hi

I am using the shell command to call a vb executable.

Call Shell(\\server\folder\Update.exe)

it copies a mde to replace this current mde.

The problem that it won't work when I call it but it does when I click on
the exe.

What is wrong and how do I overcome this?

Many thanks in advance
Richard
 
W

Wayne-I-M

Can you post the code you are using the call the shell
and any other info that may affect it
 
R

Richard

Hi

The code is as follows:

If MsgBox("The database will be closed for the process and will open
when it has updated." & vbCrLf & "Press OK to continue or Cancel to Abort",
vbOKCancel, "Update DB") = vbOK Then

Call Shell("\\server\folder\update.bat", vbHide)
DoEvents
DoCmd.Quit

End If

Many thanks
Richard
 
R

Richard

Oh sorry

The code should be an exe instead of bat. I am trying out a batch file, thus
for the bat file I copied.

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top