|
#1
|
|||
|
|||
|
Hi all,
I am working as system administrator in a medium size firm. We are hosting some of the applications on a central server, and we creat shortcut for users on there desktop. What I am looking for is redunduncy of the application... I want to host the same application on another server and if the primary server becomes unavailable for maintainance or any other reason the shortcut shoud automaticaly point to the alternate server... Thanks in advance for any solution/comments Regards, Rustum |
|
#2
|
|||
|
|||
|
I would suggest running the app through a drive-mapping, this is often
preferable for a number of reasons anyway. If the mappping is established by a logon-script, then a test for the existence of any known file in the share could be used to redirect the mapping if there is a fault. net use /persistent: no net use h: \\mainserver\appshare if exist h:\app\myapp.exe goto mainok net use h: /delete /yes net use h: \\standbysrv\appshare :mainok (- Actually on Windows servers you can test for the . or .. files to confirm the presence of a share if you don't know what files are in the share. ) This would presume of course that users will re-logon if the app doesn't work.. but I think it's a fair bet they will do that anyway. The other thing you might want to do is to make the shortcut a static one, otherwise it could end-up resetting itself to point at notepad (or summat equally silly) if the app isn't there. |
|
#3
|
|||
|
|||
|
Alternatively, just thinking, if you prefer to work through shares rather
than mappings you could use a script something like this as a direct replacement for the shortcut: ; Adjust to suit network: Local $MainExecutable = '\\mainsrv\share\app\myapp.exe' Local $StandbyExecutable = '\\sbsrv\share\app\myapp.exe' select case FileExists($MainExecutable) Run($MainExecutable) case FileExists($StandbyExecutable) Run($StandbyExecutable) case else msgbox(48,"Error","Unable to launch program.") endselect Adjust to suit, compile with AutoIt 3 from http://autoitscript.com and place on desktop. You might possibly want to set a working-folder in the Run statements, though many apps will work without. |
|
#4
|
|||
|
|||
|
Depending on your budget and exiting infrastructure you may want to look at
clustering or NLB [less likely]. This is a fairly advanced topic but the link below has more details. --- Steve http://www.microsoft.com/windowsserv...lt.mspxfffssss "Rustum" <Rustum@discussions.microsoft.com> wrote in message news:05110321-F0E4-4E2D-884A-B7CFD843A1DD@microsoft.com... > Hi all, > I am working as system administrator in a medium size firm. We are hosting > some of the applications on a central server, and we creat shortcut for > users > on there desktop. What I am looking for is redunduncy of the > application... I > want to host the same application on another server and if the primary > server > becomes unavailable for maintainance or any other reason the shortcut > shoud > automaticaly point to the alternate server... > > Thanks in advance for any solution/comments > > Regards, > > Rustum |
|
#5
|
|||
|
|||
|
Thanks a lot Ian,
Now I got a direction to work on... Yes I will write a VB Script to check availability & then call the program, Then all I need is to deploy it on all desktops (one mail to all will do it). Thanks Again Rustum "Ian" wrote: > Alternatively, just thinking, if you prefer to work through shares rather > than mappings you could use a script something like this as a direct > replacement for the shortcut: > > ; Adjust to suit network: > Local $MainExecutable = '\\mainsrv\share\app\myapp.exe' > Local $StandbyExecutable = '\\sbsrv\share\app\myapp.exe' > > select > case FileExists($MainExecutable) > Run($MainExecutable) > case FileExists($StandbyExecutable) > Run($StandbyExecutable) > case else > msgbox(48,"Error","Unable to launch program.") > endselect > > Adjust to suit, compile with AutoIt 3 from http://autoitscript.com and place > on desktop. > > You might possibly want to set a working-folder in the Run statements, > though many apps will work without. > > |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| JPEG files set to open with a dead shortcut... | Drake Lightsworn | Windows XP Photos | 2 | 01-05-2006 04:00 PM |
| Is there such a demo/tele-working software? | networm | Windows XP Work Remotely | 7 | 01-05-2006 07:12 AM |
| Is there such a demo/tele-working software? | networm | Windows XP Setup Deployment | 7 | 01-05-2006 06:09 AM |
| Problem with Shortcut dialogue | Greg | Windows XP Help and Support | 1 | 01-05-2006 02:39 AM |
| Win XP shutdown batch file | Xray | Windows XP Basics | 3 | 01-05-2006 02:12 AM |