
October 4th, 2009, 08:15 AM
|
 |
Moderator From Beyond
|
|
Join Date: Sep 2004
Location: Israel
|
|
Quote: | Originally Posted by convey2web Hi,
I am having trouble adding a VB script to my asp page. I am looking for it to execute a shell command. I have been trying to use WScript.Shell and it will not execute the command... What am I doing wrong? Is there a permission that I need to set? Below is the code that is on the page. Is there a better way to execute the shell command?
Dim wshell
set wshell = CreateObject("WScript.Shell")
wshell = wshell.run("e:\encoder\encode.exe -i e:\music\test.mp3 -o e:\output\test.m4a")
set wshell = nothing | you have third party components that let you also execute command
line application, but I suspect you got permissions problem.
to execute such stuff, the website should run with admin account or
at least account with permissions over some system files and of course
the file you're trying to execute and all its parent folders.
|