ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 22nd, 2003, 12:19 AM
dilbert65 dilbert65 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 5 dilbert65 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ASP Command Line?

This is all new to me...

I need to be able to execute DOS command lines via ASP. This would include running an .exe along with passing commands/switches.

The platform is Win2k/IIS

Is this easily accomplished with ASP?

Reply With Quote
  #2  
Old October 22nd, 2003, 12:31 PM
dilbert65 dilbert65 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 5 dilbert65 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
After seeing that few have looked at this thread and no one has responded...I thought that I would add more to my question to see if anyone has any thoughts.

I have been tasked with creating a web-based interface to interact with a DOS-based command line executable.

There are several parameters that will need to be passed to the application. Three of the parameters are being "pulled" from another server via LDAP and will need to be pushed into the command line.

ASP was the only alternative to dev with in this case. After doing a bit of research, the only web language that seems to be used with command lines is PHP. I have seen some info speaking about using ASP, but some additional DLLs (Aspexec.zip) are needed on the server in order to work with command lines.

I am still in the dark as to how to approach this. Someone here has to have done this using ASP...anyone?

Reply With Quote
  #3  
Old October 22nd, 2003, 12:55 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,957 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 35 m 19 sec
Reputation Power: 802
Are you talking about running a command line program on the web server computer?

If yes you can use windows script host if proper permissions are granted.

Here is an example from the good folks at 4guysfromrolla

http://www.4guysfromrolla.com/webtech/102998-1.shtml

Reply With Quote
  #4  
Old October 22nd, 2003, 02:03 PM
dilbert65 dilbert65 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 5 dilbert65 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Doug, but that works only if I need to execute a specific batch file.

PHP Code:
 SCSRM //o serverNameuserName /p “do this” 


the "serverName" and "userName" need to be passed into the string on each use as they will be different each time this page is used and these values will be coming from another application via LDAP.

PHP Code:
 SCSRM //o serverNameuserName “do this now” 


the "/a" and the "do this now" also will vary, but will be selected by the user.

Reply With Quote
  #5  
Old October 22nd, 2003, 07:06 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,957 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 35 m 19 sec
Reputation Power: 802
You can pass the variable data to your batch file easily

ws.run "c:\myfolder\mybatchfile.bat " & sUser & " " & sPass

Then in your batchfile do something like

myprogramname %1 %2

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > ASP Command Line?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT