Okay, I did use the below code from your web site. I put the variable 'x' in
the .bat file and it did not work.
I am a little slow to catch on... But I cannot quite see how to get a
variable through to this file.bat i.e. x=value1. How can the bat file
recognize the value of x?
set wshell = server.createobject("wscript.shell")
wshell.run "c:\file.bat"
set wshell = nothing
Can you briefly explain?
Thank you,
Cory
"Cory" <> wrote in message
news:...
> I'm using ASP to run a batch file. I need to know how to pass a variable
to
> this .bat file.
>
> Is this possible? I'm using the following code but need to know how to
pass
> ASP variable.
>
> set wshell = server.createobject("wscript.shell")
> wshell.run "c:\file.bat"
> set wshell = nothing
>
> Any ideas? Or a work around?
>
> Cory
>
>
>
|