Forum

c# bir uygulamayı f...
 
Bildirimler
Hepsini Temizle

c# bir uygulamayı farklı kullanıcı ve parola ile çalıştırmak

7 Yazılar
5 Üyeler
0 Likes
738 Görüntüleme
(@samilsaltug)
Gönderiler: 42
Trusted Member
Konu başlatıcı
 

Merhaba,

aşağıda hesap makinesini çalıştırdığım gibi ERP yazılımının bir uygulamasını çalıştırmam gerekiyor fakat bu uygulamayı domain ve/veya local Administrator kullanıcı adı ve parolasıyla çalıştıramadım.

private void button3_Click(object sender, EventArgs e)

       {

process.Start("C:\\WINDOWS\\system32\\calc.exe");

        }

 

Bilgisi olan arkadaşların cevabını bekliyorum. Tşk.

 
Gönderildi : 25/10/2010 21:05

(@rahmidilli)
Gönderiler: 2458
Famed Member
 

Merhaba,

aşağıda hesap makinesini çalıştırdığım gibi ERP yazılımının bir uygulamasını çalıştırmam gerekiyor fakat bu uygulamayı domain ve/veya local Administrator kullanıcı adı ve parolasıyla çalıştıramadım.

private void button3_Click(object sender, EventArgs e)

       {

process.Start("C:\\WINDOWS\\system32\\calc.exe");

        }

 

Bilgisi olan arkadaşların cevabını bekliyorum. Tşk.

Merhabalar,

C:\Windows\System32\calc.exe şeklinde olması gerekmiyor mu? Çift \\ (ters eğik çizgi 2 tane görünüyor kodunuzda)

 
Gönderildi : 26/10/2010 02:09

(@HakanArik)
Gönderiler: 3
New Member
 

System.Diagnostics.Process.Start("calc");

 
Gönderildi : 27/10/2010 06:39

(@OktayBOZDEMiR)
Gönderiler: 88
Estimable Member
 

public static Process Start( string fileName, string arguments, string userName, SecureString password, string domain )

public static Process Start(
	string fileName,
	string arguments,
	string userName,
	SecureString password,
	string domain
)
 http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx 

Public methodStatic memberStart(String, String, SecureString, String)Starts a process resource by specifying the name of an application, a user name, a password, and a domain and associates the resource with a new Process component.
Public methodStatic memberStart(String, String, String, SecureString, String)Starts a process resource by specifying the name of an application, a set of command-line arguments, a user name, a password, and a domain and associates the resource with a new Process component.
Public methodStatic memberStart(String, String, SecureString, String)Starts a process resource by specifying the name of an application, a user name, a password, and a domain and associates the resource with a new Process component.
Public methodStatic memberStart(String, String, String, SecureString, String)Starts a process resource by specifying the name of an application, a set of command-line arguments, a user name, a password, and a domain and associates the resource with a new Process component.
Start(String, String, SecureString, String)Starts a process resource by specifying the name of an application, a user name, a password, and a domain and associates the resource with a new Process component.
Public methodStatic memberStart(String, String, String, SecureString, String)Starts a process resource by specifying the name of an application, a set of command-line arguments, a user name, a password, and a domain and associates the resource with a new Process component.
Yukarıdaki linki inceler misin?

 
Gönderildi : 27/10/2010 15:38

(@AhmetRende)
Gönderiler: 138
Estimable Member
 

Merhabalar,

C:\Windows\System32\calc.exe şeklinde olması gerekmiyor mu? Çift \\ (ters eğik çizgi 2 tane görünüyor kodunuzda)

 hocam buna escape sequences deniliyor. yani kaçış karakterleri diyebiliriz. bu tarz özel karakterleri girebilmek için yapılıyor. diğer türlü farklı anlamlar türetiyor. bunun yerine tırnak işaretinden önce '@' işareti koyarakta yapabiliriz. Böylece her karakterle özel olarka ilgilenmemiz gerekmez.

yani bunun gibi:

process.Start(@"C:\WINDOWS\system32\calc.exe");

 

 
Gönderildi : 19/11/2010 15:00

(@samilsaltug)
Gönderiler: 42
Trusted Member
Konu başlatıcı
 

Teşekkürler.tam olarak bunu arıyordum.

 
Gönderildi : 29/12/2010 12:46

(@samilsaltug)
Gönderiler: 42
Trusted Member
Konu başlatıcı
 


public static Process Start( string fileName, string arguments, string userName, SecureString password, string domain )

public static Process Start(
	string fileName,
	string arguments,
	string userName,
	SecureString password,
	string domain
)
 http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx 

Public methodStatic memberStart(String, String, SecureString, String)Starts a process resource by specifying the name of an application, a user name, a password, and a domain and associates the resource with a new Process component.
Public methodStatic memberStart(String, String, String, SecureString, String)Starts a process resource by specifying the name of an application, a set of command-line arguments, a user name, a password, and a domain and associates the resource with a new Process component.
Public methodStatic memberStart(String, String, SecureString, String)Starts a process resource by specifying the name of an application, a user name, a password, and a domain and associates the resource with a new Process component.
Public methodStatic memberStart(String, String, String, SecureString, String)Starts a process resource by specifying the name of an application, a set of command-line arguments, a user name, a password, and a domain and associates the resource with a new Process component.
Start(String, String, SecureString, String)Starts a process resource by specifying the name of an application, a user name, a password, and a domain and associates the resource with a new Process component.
Public methodStatic memberStart(String, String, String, SecureString, String)Starts a process resource by specifying the name of an application, a set of command-line arguments, a user name, a password, and a domain and associates the resource with a new Process component.
Yukarıdaki linki inceler misin?


.

 
Gönderildi : 14/01/2011 21:25

Paylaş: