Likurg Posted March 16, 2010 Posted March 16, 2010 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.
BrettF Posted March 16, 2010 Posted March 16, 2010 Please post your code or a reproducer to replicate this problem. Type of server? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Likurg Posted March 16, 2010 Author Posted March 16, 2010 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.
MindSlap Posted March 16, 2010 Posted March 16, 2010 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.
Likurg Posted March 17, 2010 Author Posted March 17, 2010 I am just using MS client. I'll try to follow advice and review name resolutions. Tnx for advices.
rudi Posted March 17, 2010 Posted March 17, 2010 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now