Jump to content

Recommended Posts

Posted

Hello!

My script asks user for a path to executable file and then launches it with ShellExecute(or Run).

If user specifies a path on his computer(for example, on desktop) - everything works fine.

But if user specifies an exe on the server (for example, \\server\path\application.exe)

ShellExecute and Run immediatly launch application(an application's window appears) and then they wait for 2 minutes.

And only after some time script continues to work.

Any suggestions??

Tnx.

P.S Sorry for my english.

Posted

If Not ShellExecute("\\server\path\application.exe") Then Return False ; This line takes a lot of time
If Not Run("\\server\path\application.exe") Then Return False ; Or this line

Local network - Samba sharing.

And, by the way, it seems, that it takes a lot of time only in Windows 7, in Windows XP - everything it's OK.

Posted

If Not ShellExecute("\\server\path\application.exe") Then Return False ; This line takes a lot of time
If Not Run("\\server\path\application.exe") Then Return False ; Or this line

Local network - Samba sharing.

And, by the way, it seems, that it takes a lot of time only in Windows 7, in Windows XP - everything it's OK.

You wouldnt happen to be in a mixed enviro that includes novell are you?

In such a case its the redirector that is the problem.

With novell, by default it searches with its own client, times out, then sends the search to the MS redirector.

To make it quicker, this this case, change the UNC PATH FILTER to OFF in the novell client's advanced properties.. This sends the search to the MS redirector first.

If you dont use novell, this same 'thought' can be applied if your using any other client.

If your just using a strict MS client, you may want to review how the machine is peforming its name resolutions.

Posted

Hi.

How long does it take in a command box to execute this?

copy \\server\path\application.exe %temp%

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...