|
Cool, Giorgi!
Actually I just want to keep things simple and just want to write a couple of lines script in powershell to schedule a job for an application.
More specically, I want to write script which like this in powershell. But dues to my limited skills in vbscript, I do not know what is the meaning of the statement and how to rewrite it in powershell. Do you have any ideas?
http://msdn.microsoft.com/en-us/library/aa394601.aspx[^]
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
regards,
George
|
|
|
|
|
My skills are limited in VBScript too I believe googling powershell and task scheduling should bring some results.
The library that I mentioned would allow users to schedule some jobs as they would like to.
|
|
|
|
|
Hi All,
On my Windows form application, I am having a MenuStrip control on my Main form, it contains several items (the other menus) in this menu. Now if a user logs into system with Clerk privilege, how can i disallow this user to see all the menus, and if a user logs in with Manager privilege, how can i make this user to see all functions of my system. In other words, it is pretty much like user permission, like Windows?
I was thinking use this one: menuUserOperatin.Hide() or menuUserOperatin.Show(), but it only applies the main Menu, not the items under that main menu.
Thanks heaps
|
|
|
|
|
If you don't want a clerk to see all the menu items, just delete the whole menu if a clerk logs on. If you don't want to delete the entire menu, you can either delete individual menu items, or disable them.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
cheers mate, but it already solved by myself.
|
|
|
|
|
Then why didn't you mark your question as "solved"?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Can someone please tell me if it's possible to change the language from English to say ...Japanese in the C# 2.0 System.Console application. I want to display random characters on the screen but with Japanese symbols instead while using a English language pack PC. Is this possible? Please give a short example or the class to use.
|
|
|
|
|
I'd be astonished if a console app could do this. I'm pretty certain it could only print the default character set (en).
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Well I was hoping that was not the answer but since Google turns up nothing for me, I must believe it's true. Thanks!
|
|
|
|
|
Hi.
I need to come back to the start of the program, from the main or from functions. How I do that?
I mean, without to reload the project o restart the windows aplication, only to be at the point of waiting the start click again.
Thanks.
|
|
|
|
|
You are developing in an OO, event driven environment, there is no "go back to start", I've not heard that since the 80s. Your program falls into a state of waiting for an event, usually on the main form, this could be considered the default start point of your application.
If you want to reset your environment to exactly as the start of the application then you need to manually clean up all the variable and settings between application.run and now. You may be able to recall form_load from your main form, I've never had to do this.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Mycroft Holmes wrote: You are developing in an OO, event driven environment, there is no "go back to start", I've not heard that since the 80s
I remember when I was first learning event-driven programming and this confused the hell out of me!
Kevin
|
|
|
|
|
Yeah but I would have thought anyone learning today would automatically be OO oriented rather than procedural.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yeah, that's true. I was learning both OO and event-driven programming together circa 1994. Sure was confusing at the time.
Kevin
|
|
|
|
|
Hi,
What I need is to draw a line with a "star" shape for instance.
I mean, use a custom shape (any polygon/ellipse) in order to draw a line with it.
I don't see any way for doing that in C# (WPF).
Take a look at the picture to see what I mean.
http://img242.imageshack.us/my.php?image=sampleiw3.png[^]
Thanks everyone!
|
|
|
|
|
Answered in your original post.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Is there a site to learn how to build property pages that look like the one's in Visual Studio??
tia
Rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
The first 2 on this search look promising clickety[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thanks for the tip.....propertybag aaa
rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
Hay
I don't know if it's possible or not ...
can I get any file that the user copy it on the hard disk ..
thanks
jooooo
|
|
|
|
|
Theoretically yes, put a watch on every directory. There may be an OS call to copy a file you may be able to monitor. No that does not make sense, too many apps can access the file system!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
thanks my friend for your attention
jooooo
|
|
|
|
|
Hey kindman_nb,
check the FileSystemWatcher class. You can set this to start watching at the root of your file system to get each and every file. However, it does not tell you explicitly which files were copied, only which files were created, updated, renamed or deleted. So in order to check for copied files you would have to keep a reference of files created and files removed. If you have the same file removed and created elsewhere in a short period of time, it's probably going to have been copied. Of course this only works if the file is being copied with the same name.
Let me know if this applies to your case. If not try to provide some more details.
Cheers,
Marcelo
|
|
|
|
|
thanks Marcelo .. it's ok now
jooooo
|
|
|
|