|
-
Oct 2nd, 2002, 08:52 PM
#1
Thread Starter
Addicted Member
Starting an exe
Is there a way to have my asp.net page on my web server start a specific application on my home computer? Lets say when a user clicks on a button notepad starts on my computer, any ideas?
-
Oct 3rd, 2002, 12:49 PM
#2
Hyperactive Member
We need a sticky explaining server-side code versus client-side code. Asp.net can't do anything on the client because by the time you view your webpage it has done it's job on the server.
To do what you need you would need to find some javascript, which is client-side code and can run on the client computer.
-
Oct 3rd, 2002, 08:37 PM
#3
Thread Starter
Addicted Member
humm not sure we understand each other. I want notepad to execute server side when a person clicks on a button on user side. Wouldn't jscript force the exection to occur on the client side?
-
Oct 4th, 2002, 01:06 PM
#4
Hyperactive Member
Re: Starting an exe
Originally posted by bob323
my asp.net page on my web server start a specific application on my home computer
This implied to me that you wanted norepad to start on the pc accessing the web server which to me meant the client pc. The shell function that runs applications only works with windows applications presumably because asp.net apps are intended for web programming only.
For reference though this is the command that works in a windows application. You might be able to get it to work but I couldn't.
Microsoft.VisualBasic.Interaction.Shell("notepad", AppWinStyle.NormalFocus, True)
-
Oct 4th, 2002, 03:13 PM
#5
Frenzied Member
I believe security restrictions will prevent you from doing this. (At least I would hope so) Because if you can execute notepad, what would stop you from execuring say... DEL or FORMAT?
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Oct 5th, 2002, 12:43 PM
#6
Thread Starter
Addicted Member
true enough, but it would be nice if microsoft gave me enough rope to hang myself with!
I am offering a service on my webpage that basically involves me running an application for the user (editing some word docs, and sending some emails ect.)What I am trying to do is run an executable to edit these word documents and send these emails whenever a order is approved on my webserver- so I don't have to come along and randomly check my database for every new order and manually start the application.
Any suggestions on a better approach then?
-
Oct 5th, 2002, 12:57 PM
#7
Hyperactive Member
Well your word documents could be mail merged with the database or you could write a windows app that runs periodically via task sheduler that checks the db and updates the word docs accordingly.
-
Oct 5th, 2002, 02:00 PM
#8
Frenzied Member
If you re-direct them to a url containing a .doc file (server side .doc file), and they have Word, IE will open word as a com object client side and they will basically have a read only copy of it. They'd have to save as to save it though. What you're describing kind of sounds like Sharepoint server. You should check it out on MS's site..
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|