|
You can do partial conversion using tools you will find on the internet.
Try converting the remaining on your own.
If you face issues, post them here.
|
|
|
|
|
Thanks, i was trying but wasn't works fine :/, and i tried with asp2aspx but only the premium version can converts vbscript to c# :/
|
|
|
|
|
What, exactly, do you want the code to do? I ask this because .NET provides a very rich and robust framework, and it's entirely possible that there are features that it has access to that make converting this pointless.
|
|
|
|
|
i want the same funcionality in this vsb script in c#, i was trying to convert it but i'm new on c# so is dificult for me
|
|
|
|
|
I'm not going to trawl through a large block of unformatted VBS. What are you trying to accomplish? Tell us what your end goal of this code is.
|
|
|
|
|
the goal is, close user profiles from remote servers, with some specific restrictions, all this profiles will be removed on HKEY like profilelist, profileguid, policyguid, etc.., i was trying on c# with registrykey and all of that code, but doesn't works, i have one week searching code on c#, and only code that has a success funcionality is this on vscript, this list all user profile list of the local machine and profiles on domain, etc.., so is the reason that i was trying to convert it :/
|
|
|
|
|
If all you need to do is run this script from .NET, then you can use Process.Start as detailed in this[^] post.
|
|
|
|
|
yes i'm doing that in this moment, but more specific, i would like to migrate the funcionality of the vbs script to c#, and have all in a only project, thanks for this time that u are dedicating for this post
|
|
|
|
|
i often feel people open my PC when i am not in office. so i want to track whenever my pc will be turn on.
when pc will be turn on then login screen comes. before entering login detail a mail should be trigger from my win service to me?
again when another user login with my credential details then another mail come to me. now the question is how can i track this activity from windows service. windows service has one event called start(). i like to know when start() is called ?
the moment someone start the pc ? or after login successfully or after loading desktop successfully ?
if i need to send mail after turn on my pc then what i need to do ?
also if i need to send mail after giving password then what i need to do ?
please guide me in detail. tell me which event i need to work with ? thanks
tbhattacharjee
|
|
|
|
|
You can use the built-in task scheduler[^] to run a program when the computer starts up, or when a particular user account logs in. It's not foolproof, since anyone with sysadmin access could disable the task, but they'd also be able to disable or uninstall your service.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
What Richard said, and change your password. No one should ever use your creds to login to any pc.
|
|
|
|
|
There are few ways to tackle this sort of thing.
Firstly, the Window Event Viewer will normally log when users log in without you doing anything. From command prompt type 'eventvwr' and navigate to security. In Task Category look for log on. You'll need admin rights for this. That may give you enough information that you don't need to create a Windows Service.
The start override is called when the Service starts, and that will usually be when the computer starts when set to automatic, of when explicitly started when set to manual.
If you do go ahead with the service, I would investigate programmatically getting events from the Event Log - there probably will be a hook where you can receive them but I don't know off the top of my head.
A simple approach might be to create a little console app that sends an email and make it run when you log in - like things like Skype do. It's a case of adding an entry in the registry in the 'run' section of windows.
Regards,
Rob Philpott.
|
|
|
|
|
Windows service is a reasonable approach to try with.
There are a number of online tutorials that will hhelp you get started.
Pick any one up and build your service.
|
|
|
|
|
I want To Draw number of electrons around the Atom < 3D > using XNA 4 but i failed
anyone Can help me ??
|
|
|
|
|
nada 1015 wrote: but i failed You also failed to explain what your code tries to do, and what errors or incorrect results you received.
Use the best guess
|
|
|
|
|
all i want to do is to draw a 3d model of electron around a 3d model of atom
i need somone help me to think how to write the Code
|
|
|
|
|
|
hi i`m trying on my project
i want to Expand or reduce window size click the button
like this
http://image.kilho.net/?pk=1216519[^]
i`m using Visual Studio 2012 and WPF project
how can i solve it?
|
|
|
|
|
You can try the Expander[^] or Accordion[^] controls for layout.
|
|
|
|
|
thanks for your help
do you know some exam?
if you know that it will be very thanksful
|
|
|
|
|
Good day Everyone,
The following is part of my code
start code
protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "temp", "<script>loadAdditionalInfoDialog(info1)</script>",false);
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "temp2", "<script>loadAdditionalInfoDialog(info2)</script>",false);
}
end of code
The loadAdditionalInfoDialog() function will prompt a small window and let user to key in some info and then click on "OK" button to proceed to next step.
But, when I click on Button1, I can only see the secoond RegisterStartupScript, which is loadAdditionalInfoDialog(info2) works, it will prompt the small window, and I can key in some info and click on "OK" button to proceed to next step.
Because of this, I CAN NOT enter info for the first RegisterStartupScript, which is loadAdditionalInfoDialog(info1).
Would like to ask for solution which is, when I click on Button1, I can first enter info for loadAdditionalInfoDialog(info1) and then click on "OK" button, then continue enter info for loadAdditionalInfoDialog(info2).
Thousand of thanks.
|
|
|
|
|
Hi,
i m stuck in dll registration using c#.
i have to register some dlls in system32.
for that first in put all dlls in a seperate folder DLL.
then create a batch file who first copy all dll in system32 folder then register a XYZ.dll.
all goes well when we run code.
M using this line in batch file.
copy .\DLL\*.dll %windir%\system32\
regsvr32 %windir%\system32\XYZ.dll
but when we create setup and install project in client system, nothing happens.
even i m logged with adminsiatrator
if we run exe from client system by runas(my exe) it works.
i google it and find a solution
ProcessInfo.verb = "runas"
but same problem exists, nothing happens.
now the main problem is that how it works without administrator.
|
|
|
|
|
You need to basically run the exe as an administrator to make sure dlls are registered properly.
|
|
|
|
|
If you created a Setup (MSI) install for your app, when you add the .DLL's, you should have an option to register them. You don't need the batch file at all. Usually the tool your use to build the setup will detect this and enable registration for you automatically.
What are you using to build the setup??
|
|
|
|
|
what is the code in c# in mouse move event to display the current mouse position in form?
|
|
|
|