The problem with that is that this is a web application. So if someone on the "web" uploades a file - won't it upload the the files to the "c:/" drive of the machine that the user is on - rather than on the web server itself. I need to be able to view whatever files/images...
I have the following code an html form that posts to an asp page see "general" code below:
Add-Item-Form.html
<form method="post" action="Add-Item.asp" enctype="multipart/form-data">
<tr>
<td align="Right" width="380"><P...
ok - I copied your code above and put it in an html page...that sits on my web server. The only change I made, was to output the results to a text file:
wsh.run "%comspec% /c ipconfig /release > c:\release.txt",1,true
I click on the button in the "form" and when I do it...
I've tried this and the code runs, except it does the release for the ip address of the "actual web server" rather than the end-users machine...????
Is there a way that it works with Netscape and Mac systems???
thanks,
kpierick
Does anyone know how to make the following happen:
Web Page with a button - once the user clicks on the button it needs to run a vbscript that does an IPCONFIG /release and /renew command on the "users machine" NOT on the web server.
I tried using WScript -
shell.run...
When I specify the user and pwd in the following:
Set Service = Locator.ConnectServer(Server, "root\cimv2", user, pwd)
I get the following error now:
User credentials cannot be used for local connections
any ideas?
Ok - I've found out that all the above fields in my post need to be "declared"...once I do that, I get an error:
access is denied when it runs the following line
Set Service = Locator.ConnectServer(Server, "root\cimv2", user, pwd)
where I have defined the following...
Ok - I've put the above into my code.
I'm getting a variable undefined error.
Are Process, Locator, Service all reserved words for WMI or do they need to be declared first?
Also you have the following line:
intStatus = Process.Create("cmd /C " & strCmd, null, null, intProcessId)...
k - I will try that, but a couple of questions???
Function Remote_Cmd(Server, accnt, pwd, strCmd)
server = the IP address of the scope I'm wanting to run my commands on? or the IP Address of the actual machine that my DHCP server (windows) and my Web Server are running on?
accnt & pwd =...
When I "delete excluderange" using netsh (exclusion range for one of my scopes) it doesn't show anything in this log file...but yes it does actually do the delete of the exclusion range I specify in my DHCP server.
I would agree with your thoughts on the permissions. How would I go...
I found the following DHCP Audit Log file: DHCPSRVLOG.Tue
I opened up this file in Notepad and it contains the following:
Microsoft DHCP Service Activity Log
Event ID Meaning
00 The log was started.
01 The log was stopped.
02 The log was temporarily...
THANK YOU; THANK YOU; THANK YOU;
I now see the error of my ways...this was executing all along, just I was too dumb to output the results of the execution of a text file....
Now there is one thing that is strange about when this executes. My code I listed previously writes all my commands I...
Ok - tried this, but it still "hung up" my I.E.
So I used instead the following:
wsh.run "cmd /c netsh show helper > c:\output.txt",1, True
"cmd /c" instead of "cmd /k"
This created a file called output.txt on my harddrive just like it should...
so I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.