Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / October 2003

Tip: Looking for answers? Try searching our database.

My Script to run a Command-Line from ASP does not work.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lucas Cowald - 23 Oct 2003 07:43 GMT
Hi,
My Script to run a Command-Line from ASP does not work. No errors are
returned either.
It is on IIS. The directory where the script exists is on Drive I:, The
executable .exe is on Drive D:
Do you see any problems with the script below? Can you help me modify it?

<%
   Dim objWSS
   Const cCMD = "clw45.exe -i k:\o\1.wmv -o k:\o\2.ghh -w 128 -df 0 -m
2 -p"
   Set objWSS = CreateObject("WScript.Shell")
   objWSS.CurrentDirectory = "D:\Program Files\Program\The Program\"
   objWSS.Run "%COMSPEC% /c " & cCMD,,True
%
Victor Garcia Aprea [MVP] - 23 Oct 2003 21:01 GMT
Hi Lucas,

I believe you could get better luck by posting to a ASP newgroups; this one
is currently for ASP.NET and its about building custom controls.

Signature

Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

and not by private mail.

> Hi,
> My Script to run a Command-Line from ASP does not work. No errors are
[quoted text clipped - 11 lines]
>     objWSS.Run "%COMSPEC% /c " & cCMD,,True
> %

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.