|
-
April 17th, 2001, 11:17 AM
#1
execute exe file?
hi.
is it possible to execute exe or dll file from local htm file (using VbScript, maybe)?
Smile, Shmulik. (-;
-
April 17th, 2001, 11:28 AM
#2
Re: execute exe file?
Option Explicit
Dim FSO
Dim WSH
Const AppToRun = "C:\test.exe"
Set WSH = WScript.CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
If FSO.FileExists(AppToRun) Then
WSH.Run AppToRun
Else
MsgBox AppToRun & " Does not Exist"
End If
Remember to enclose long file names in Quotes
Iouri Boutchkine
[email protected]
-
April 17th, 2001, 11:50 AM
#3
Re: execute exe file?
ok it's work - but...
in this way i recieve an alart message. i do not want this message. is there another way?
Smile, Shmulik. (-;
-
April 17th, 2001, 12:01 PM
#4
Re: execute exe file?
Are you trying to write a virus?
Iouri Boutchkine
[email protected]
-
April 17th, 2001, 12:20 PM
#5
Re: execute exe file?
i knew you'll think so.
no. i'm trying to build a local internet application (something like intranet) on my computer, that will be able to run exe files (instead start->programs, for example). i want to run it with out IIS, so i need to execute files using VbScript.
just for remind: every thing is local. no access to the internet.
Smile, Shmulik. (-;
-
February 13th, 2002, 02:53 PM
#6
Re: execute exe file?
I tried this code and got WScript undefined. Could you tell me the problem?? Thanks
-
February 13th, 2002, 04:06 PM
#7
Re: execute exe file?
Do you have WindowsScriptHost installed on your machine?
Iouri Boutchkine
[email protected]
-
February 13th, 2002, 04:59 PM
#8
Re: execute exe file?
I don't know but it would seem that I do not. Any suggestions?
-
February 14th, 2002, 06:49 AM
#9
Re: execute exe file?
Yes, I have WScript installed in the Windows Directory as a Host Application. What do you think, you have been very good so far and it is much appreciated. Any response to your download code, which works and now I need some upload code.
Thanks again
-
February 14th, 2002, 10:24 AM
#10
Re: execute exe file?
Rate it if it helped you
Iouri Boutchkine
[email protected]
-
February 15th, 2002, 07:04 AM
#11
Re: execute exe file?
Yes, I do have it intalled. I'm trying to execute it from an HTM document-does that matter?
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
|