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...
Ok - I did that...
when I put the "cmd /k" in the strSH.run line...it show in the status bar of my I.E6.0 that it is going, but it gets to about 1/2 way and never goes any further...I have an "hour glass" for my cursor and the DOS prompt never "opens up"...I...
I put the following in my code:
strSH.run "cmd /c netsh show helper",1,True
and NOTHING happened...it didn't start/run my dos prompt.
Do I maybe need to alter some settings for IIS5.0 or something? I haven't changed any settings for IIS5.0 - I just installed it and started coding...
Thanks for all your replies, but still not working.
Ok here is my code:
I have a function before this that obtains my values for 2 variables below: strIP and strMAC
I then call the following function:
<%Function CreateDHCPEntry()%>
<%set strFSO =...
In my code, it acts as though it really maybe never even runs the line of code. It never displays an error or anything. This is so "totally" weird...I'm at a loss of what to do...
Netsh is a command-line and scripting utility for Windows 2000 networking components for local or...
Here is a little more background on what I'm trying to do.
This script is contained in a web page (that sits on a machine that is running Win2000, IIS5.0 and DHCP)
We will be having our customers go to this webpage and enter in name, city, phone...once they submit this form, I have some...
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.