Where do you actually setup the permissions for accounts in Windows NT?
Its due when
Posts
-
Help with vbscript and Windows NT -
Help with vbscript and Windows NTThe script is in a webpage and runs on the server. How do I determine which account is running that script. I would have though it would have been the IUSR_xxxxxxxx account or am I wrong?
-
Help with vbscript and Windows NTHow do I set the permissions for users in Windows NT? The interface is not what Im used to and Im not sure how I can change it. Thanks
-
Help with vbscript and Windows NTHi Guys, Well I'm totally stumped. I've got a bit of vbscript code that tries to find a particular process running on a machine (Windows NT). If the process exists I want the text ("I am running...") displayed. If it doesn't exist then I want the text ("I am not running") displayed. Just some background on the OS. Its Win NT 4 service pack 6 and i reinstalled WMI Core 1.5 On win xp, win 2k and win 2k3 the script below works fine. However on windows nt where this will reside on it fails giving me an error 80041001 which I belive is a "Call failed" error. Can anyone shed some light on why this would be happening on NT in particular? Thanks in advance <% Dim strComputer, strProcess strComputer = "." On Error Resume Next Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}! \\" _ & strComputer & "\root\cimv2") Set colProcess = objWMIService.ExecQuery _ ("Select * from Win32_Process") For Each objProcess in colProcess do while objProcess.name = "Someprocess.exe" strProcess = objProcess.name 'objProcess.Name 'If objProcess.name = "Someprocess.exe" then Response.Write ("I am running...") 'Else 'End If Exit Do Loop Next If strProcess = "" then Response.Write ("I am NOT running") End If %>
-
Help with vbscript and windows ntHi Guys, Well I'm totally stumped. I've got a bit of vbscript code that tries to find a particular process running on a machine (Windows NT). If the process exists I want the text ("I am running...") displayed. If it doesn't exist then I want the text ("I am not running") displayed. Just some background on the OS. Its Win NT 4 service pack 6 and i reinstalled WMI Core 1.5 On win xp, win 2k and win 2k3 the script below works fine. However on windows nt where this will reside on it fails giving me an error 80041001 which I belive is a "Call failed" error. Can anyone shed some light on why this would be happening on NT in particular? Thanks in advance <% Dim strComputer, strProcess strComputer = "." On Error Resume Next Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}! \\" _ & strComputer & "\root\cimv2") Set colProcess = objWMIService.ExecQuery _ ("Select * from Win32_Process") For Each objProcess in colProcess do while objProcess.name = "Someprocess.exe" strProcess = objProcess.name 'objProcess.Name 'If objProcess.name = "Someprocess.exe" then Response.Write ("I am running...") 'Else 'End If Exit Do Loop Next If strProcess = "" then Response.Write ("I am NOT running") End If %>
-
Full Text QueryHi guys, I have (hopefully) a simple query regrading full-text indexing. If I start a full population and for whatever reason "stop the population build", can I then just start a full population again? Im not sure if any indexes get blown out of whack or whether I need to recreate the catalog by dropping it and recreating it. Hope to get some advice on this. Thanks in advance! Nic
-
RegCreateKeyExHi All, Im creating a dll and I want to put in the code a way to create a registry key. Im only trying to do something very simple - (1) Create a registry key & (2) Have a vaule pointing to the root of c:\ Ive just tried the basic regcreatekeyex method and although it compiles it does not actually create anything and I think ive missed something very fundamental here (please forgive the noobie status). Here is the code: DWORD dwRes, dwDisposition; SECURITY_ATTRIBUTES sa; LONG lRes; HKEY hkSub = NULL; lRes = RegCreateKeyEx(HKEY_CURRENT_USER, "mykey", 0, "", 0, KEY_READ | KEY_WRITE, &sa, &hkSub, &dwDisposition); It compiles fine but when i run regedit and try to find "mykey" it comes up with nothing. Any help would be greatly appreciated. Thanks Nic :confused:
-
Add a dll in vb6Hi Robert, Thanks for your help but I actually worked it out. It couldnt find the dll cause the system path did not have the dir to the dll location at all. I put it in and it worked like a treat. By system path I mean if you go into the properties of my computer and then onto environment variables you can specify the path where dll's are stored and if you do this it works. Once again I thank you and all who posted for your help. Great help -> Great Forum :-D Nic
-
Add a dll in vb6Hi Robert, Thank you for your reply. I tried putting the dll in question into the application folder (I assume this is the folder in which the vb project resides in?) - Unfortunately again it says that the dll could not be found. Now when you say WinSys folder do you mean the system/system32 folder in the windows directory? I tried putting them in both folders but unfortunately again no go - File not found: Run time error 53 Any other thoughts?
-
Add a dll in vb6Thanks for that guys. I guess my vagueness is attributed to the fact that vb6 is not my strong point. Its not a COM DLL. From my understanding there are 2 steps required for using a dll. (1) The declare statement passing arguments byVal and (2) Calling the DLL procedure. Now Ive done the Declare statement correctly but when I actually call the dll in the code it comes up with a run time error "53": File not found (ss12.dll) Now what Im assuming is that there must be a way to map a path to this dll? Am I right in assuming this? Once again I thank you all for assisting me with this. Nic
-
Add a dll in vb6Hi All, Ive got a third party program that im trying to use in vb6. However it references a dll that cant be found (well its there but I dont know how to add it to the project) Debugging highlights this bit of code: ab = dll_ss12_dosomething( _ ab1, _ ab2, _ ab3) I know which dll to call as it is an app specific dll but I dont know how to reference it correctly in vb6. There are tons of examples on how to do it in vb.net and even the support manual shows how to do this in vb.net but not vb6. Oh and vb6 is supported by this app. Any help would be greatly appreciated. Thanks! Nic:confused:
-
How many searches done on a website?So I assume then that when a search is done on the page aside from doing the select statement that returns the results, I'll have to do an INSERT INTO statement that logs the info into some log table. Does that sound about right?
-
How many searches done on a website?Nice looking thing but i need something that actually monitors whats happening on the site. For eg. There is a search function that talks to the DB and returns results. Need to know what they are searching for. I dont think Live Stats can do that can it?
-
How many searches done on a website?Hi guys Was wondering if there were any articles/links to find out how it is possible to see how many searches are done on a website and what they are searching for? Tried looking but most are 3rd party tools which is not really an option for me. Any help would be greatly appreciated. Thanks NL
-
Populate data in text boxDave, Sorry about posting it in the wrong forum. Just goes to show what 2.00am will do to you :) Anyway your spot on just needed to enclose the objRS and it worked like a treat. Again appreciate the help :) Nic
-
Populate data in text boxHi all, Im having a bit of trouble displaying data from a field into a textbox. I should mention that this is a web application that is doing a select statement and then populating the data into a textbox. The problem is that one of the fields has spaces in it. If i try to display the data into a text box using this code: My Label Only the first word of the sentence is coming up. Is there a reason for this and a way around it? Any help would be greatly appreciated. Thanks
-
Populate data in text boxHi all, Im having a bit of trouble displaying data from a field into a textbox. I should mention that this is a web application that is doing a select statement and then populating the data into a textbox. The problem is that one of the fields has spaces in it. If i try to display the data into a text box using this code: My Label Only the first word of the sentence is coming up. Is there a reason for this and a way around it? Any help would be greatly appreciated. Thanks
-
Viewing stored proceduresHi All, I was wondering if I could get some advice on this. What Im trying to do is view a stored procedure in an asp page. I dont know much about it and was wondering is it like displaying records in a table? Any help/links would be greatly appreciated. Thanks in advance Nic
-
Problem calling batch file in ASPHey all, Im trying to call a batch file in ASP but everytime i try it i get an error 'Object Expected'. Here is the code in question: <% function myFunction() set objShell = server.CreateObject("WScript.Shell") intStatus = objShell.Run("c:\inetpub\wwwroot\Test\some.cmd", 0, true) end function %>
Does this look right or have I totally missed/messed something?
-
Help - Calling a batch fileColin Angus Mackay wrote: You mean like a DOS .bat file? Exactly, That link was perfect. Much appreciated Colin!