|
arkiboys wrote: How is it possible to start a powershell script on a remote machine using process.startinfo with username, password and domain details.
I believe you've been told every time you've asked this that this isn't really possible because it represents a major security flaw.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
Hi,
I'm writing an application to run in background to fully control multiple mouse click/movement. (Raw input)
For example, If I click a button, nothing should happens unless i tell it to (i.e. it won't give focus to some other application when i click the left button without my permission, even if I'm outside of my application boundary or when at the invisible/transparent part of the application, or my application is running in background).
I'm currently clueless where I should start, please give me some direction.
Thanks.
|
|
|
|
|
Thats a nasty set of requirements, I suggest you post some reasonable explanation why you need to TAKE OVER your users machine.
There are also Kiosk type applications[^] that may beet your needs
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Im taking my own machine... Basically, I need to allow multiple mouse, but since windows wouldnt allow this normally, so Im thinking of writing an application (fully transparent) which be able to track the mouse movement/block input so that I can draw another fake pointer to act as second mouse... Not sure if this make much sense??
|
|
|
|
|
|
Hi,
I am using Microsoft Indexing services in C#
everything doing well but i have no idea
How to Used wild card Character to extract/Find Content of Documents.
for example Like operator usage in Contents column.
This is Simple Query to used like operator in FileName.
SELECT * FROM WEBINFO Where filename like '%pdf'
But I want to used like operator in contents search column.
SELECT * FROM WEBINFO Where Contents like 'abc%'
abc
abcd.
abcxyz.
abcddd.
|
|
|
|
|
You may be able to cheat and use:
<s>SELECT * FROM WEBINFO Where REVERSE(filename) like '%pdf'</s>
Fixed that
SELECT * FROM WEBINFO Where REVERSE(filename) like 'fdp%'
Last modified: 2hrs 11mins after originally posted --
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have mutiple files in a catalog.
i want to find files content/keyword but Using Like Operator/Wildcard.
|
|
|
|
|
I had a BHO.
When a web page is opened on IE, I try to replace the HTMLElement's text using
foreach (IHTMLElement HtmlElemen in (IHTMLElementCollection)document.body.all)
{
try
{
HtmlElemen.GetType().GetProperty("innerText").SetValue(HtmlElemen, "NewText", null);
}
catch(Exception e)
{
System.Windows.Forms.MessageBox.Show("Message:" + e.Message );
}
}
In some PC's the html element's text is replaced successfully with "Newtext",
but in some PC's it is not replacing.
And an exception message is obtained "Object reference not set to an instance of an object. "
How to fix this exception?
foreach (IHTMLElement HtmlElemen in (IHTMLElementCollection)document.body.all)
{
try
{
Type type =HtmlElemen.GetType();
if(type !=null)
{
type.GetProperty("innerText").SetValue(HtmlElemen, "NewText", null);
}
// same way check Innertext also has not null reference then set value to taht.
}
catch(Exception e)
{
System.Windows.Forms.MessageBox.Show("Message:" + e.Message );
}
}
If I try this code , a message(exception ) is obtained.
Message:Exception has been thrown by the target of an invocation.
I think, I was missing some assembly, what is it to get executed.
May anyone help?
|
|
|
|
|
Hi,
I don't think this is a problem with a missing assembly. As you already mentioned you should check wether the innerText-Property is set or not.
Do this by:
if(null != type) {
if(null != type.GetProperty("innerText")) {
...
}
}
That should fix the problem.
Regards
Sebastian
|
|
|
|
|
thanks for reply
InnerText is not set, as I try to set the value it throws an exception.
How to fix, Can you explain with some code?
|
|
|
|
|
No it is not that InnerText is not set, it is that the Property "InnerText" for the object does not exists. You are using reflection to get the type of your htmlelement and it is possible that this type does not provide an InnerText-Property. There is nothing to fix, you only have to pay attention to this by using the code I provided before.
|
|
|
|
|
but the same code is running successfully on other PC.
Why not on this?
Now How to fix it finally,
Is there any other way, I can replace the innertext of an htmlelement
|
|
|
|
|
Do you use the same input (I guess a HTML-page) at every PC?
|
|
|
|
|
yes, the only difference is in the PC which has visualStudio, it is successfully sets the innerText Value of an HTMLElement.
I don't understand where I'm doing wrong?
|
|
|
|
|
Is it possible, that you could post a bit more of your code, e.g. the point where you get the elements from etc. Maybe this will guide us to the point of failure...
|
|
|
|
|
|
Hi Dears,
Kindly let me know the definition of NON-BLOCKING Socket. "in short"
Thank you in advance
(Riaz)
|
|
|
|
|
M Riaz Bashir wrote: Kindly let me know the definition of NON-BLOCKING Socket.
NON-BLOCKING Socket
|
|
|
|
|
Hi
I make any File in PC, and I transfer him to PPC (Windows mobile)
How I can get the Modified date of this file ?
I try this:
DateTime GG;
FileInfo H = new FileInfo(@"c:\License.txt");
GG = H.CreationTime;
GG = H.LastWriteTime;
GG = File.GetCreationTime(@"c:\License.txt");
GG = File.GetLastAccessTime(@"c:\License.txt");
GG = File.GetLastWriteTime(@"c:\License.txt");
but I always get the Today date and time
thank's in advance
|
|
|
|
|
Yes the output is correct!!
because you have transferred the file only today!!! so that is the latest write time!!!
Have a Happy Coding.....
|
|
|
|
|
thank's for the help
What I can do to see the real creation date of the file ?
|
|
|
|
|
That is quite difficult to do AFAIK!
You can try implement this logic with the corresponding code!
1.Before File Transfer operation to your mobile device
--------------> copy the present Created Time, LastWrite time and lastAccess time to a temporary variable!
2.Copy the File!
3.And reset the Created Time, LastWrite Time and LastAccess Time from your temporary variable! since these are properties, you can able to set them! i believe!!!
So if your copy function performs all this three steps, then you will always get the creation date of file as same as your computer!!!!
It may work!!!
Have a Happy Coding.....
|
|
|
|
|
Hay..
I hava a windows based c# application project.. which i hav to switch to Arabic when user select arabic option when login.....
help pls
|
|
|
|