Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to start windows app (winword excel etc)

Status
Not open for further replies.

obiwan570

Technical User
Jan 9, 2002
9
A2
hello
can some one help with an asp script to launch windows applications like winword notepad etc from a link or button
thanks
desperate dan
 
ASP is server side scripting. Nothing it does will open an app on the client machine. The only way I have ever heard of doing it is with vbscript, which the user may not have enabled on their machine..

'VBScript Example
Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run("%windir%\notepad.exe")

ReturnCode = WshShell.Run("%windir%\notepad.exe", 1, True)
 
I've also wrestled with some of these issues trying to create shortcuts and such on local machines on our asp intranet. During my research I found a few examples of VBScript and Javascript using the WSH client-side, usually with a directive like runat="client", but I must say with a lot of trial and error I could never get any of them to actually work. They all said they were for asp but I've only ever used runat on ASP.NET pages. This route can be pretty frustrating, maybe if you told us a little more about your needs someone would be able to suggest an alternative to launching client-side apps?
 
thanks
for the script, we want to limit and and force the users of the LAN to work only through our LAN intranet so we plan to hide most program access from the start menu and desk top and make it visible thru the intranet only
any suggestions
thanks
tunji olonode
 
Lots of options there, but probably not something you'll be doing with ASP. You'll probably want to look for guidance through one of the operating system forums. In a corporate setting Novell tends to work very well underneath a Windows network where everything can be distributed through an application launcher.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top