Tuesday, April 4, 2017

batch run on remote using c#


Run cat file on remote using c#

1st Method:


2nd Method:

https://www.codeproject.com/kb/cs/remote_process_using_wmi_.aspx

3rd Method:

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "psexec \\my_remote_server -u my_domain\my_username -p " & password & " my_bat.bat"


Tuesday, January 3, 2017

Managed and Unmanaged Interoperability Recommendations


Managed and Unmanaged Interoperability Recommendations

https://msdn.microsoft.com/en-us/library/ms993883.aspx

Sunday, January 1, 2017

C++ Pointer and Adress example with C# class and Interfaces


C++ Pointer and Adress example with C# class and Interfaces

*   Pointer
&  Adress

example :

int Add(int *a,int *b)
{
    return a+b;
}

int main()
{
   printf("sum : " , Add(&a,&b);
}

Example with class and interfaces