If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > How to Execute file (by ASP code)?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-03, 06:59
liorlank liorlank is offline
Registered User
 
Join Date: Nov 2003
Posts: 22
How to Execute file (by ASP code)?

I have a file path to a VB file "../Temp/file.vbs"

I want to run this file from an ASP file
How to do it? Do I need to use the Execute object??
What is the code??
Reply With Quote
  #2 (permalink)  
Old 11-24-03, 16:55
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Well you can execute is use the Shell Scripting object something like

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell****n "my.vbs"

but personally I wouldn't. Why do you want to run a command line script? Why not incorporate the VBS into your ASP page, atleast then you could see what the results of running the fie were....
Reply With Quote
  #3 (permalink)  
Old 11-25-03, 00:48
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
And here are a couple relevant links:

Launch instance of an app with Windows Scripting Host inside an ASP Page - 5/11/2001
http://www.aspfree.com/wsh/wshexe.asp

4GuysFromRolla.com : ASP FAQS : The Nature of Things
Question: How can I call an executable program from my ASP page? by Bill Wilkinson - 10/17/2000
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=67
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On