| 1. |
Solve : I need help with a bat file, to call an exe over a network? |
|
Answer» Hi He wants it to run on start up, he can run it from there by Scheduling it, but when the server is down then he probably wants it outside of the server. That doesn't make sense to me though as he is sending the info directly to a server so if it's down, what's the point?it might be that when computer boot up and batch file is called, it's not YET FINISH connecting to network: so try put some delay into it: Code: [Select]::checkserver.bat @echo off >nul ping localhost >nul ping 192.168.1.1 || (%0) && call yourbatch.batQuote from: BumFacer on April 23, 2009, 05:51:49 AM Can you not just run the .exe from the server location e.g.: Hi Thanks for that, i had tried that, but i must have had the wrong path, i tried it again with this path \\servername\SYSVOL\Marine.ie\scripts\LSclient.exe miinvser And its working fine now. the .exe file is one which works with lansweeper software, which brings back information on the PC / software etc that the user logs on to, so i needed it to run at login/startup. its sorted now, thanks again. Damien glad you sorted it out. you are good poster, nowadays there are rarely a poster with the polite attitude to report back. if you have any more trouble, don't hesitate to ask. |
|