Arsip: dos command via delphi

 
user image
more 16 years ago

e_soep

rekan2...delphi... aq mau minta tolong...gimana menjalankan perintah dos command lewat menu delphi... yg mau aq jalankan adalah perintah net send, tapi aq pinginnya isi dari text net send tersebut aq ambil dari sebuah edit text...bia ga' ya???... atas bantuannya trims ya....
user image
more 16 years ago

reminder2k1

pake winExec mas... bisa kok...
user image
more 16 years ago

e_soep

betul sih...kalao isi stringnya langsung di tulis ikut winexec...maksudku...isi stringnya itu ambil dari edit text...gitu...bisa nggak mas?...caranya gimana ya???...
user image
more 16 years ago

ImanD

@e_soep panggil az isi edit text-nya ke memo

Memo1.Lines.LoadFromFile(path+filename);
trus jalanin, bisa kan?
user image
more 16 years ago

mas_kofa

terus hasil dari winexec disimpan pada memo juga lalu simpan pada file

Memo1.Lines.SaveToFile(path+filename);   
user image
more 16 years ago

e_soep

thank... maksudku...tidak ke memo mas...tapi semisal perintah dos itu...ambil dari memao atau edit text...gitu...seperti... [vb:1:d18fd993cc]winexec(c:\windows\system32\cmd.exe /C net send 192.168.0.1 test',sw_normal;)[/vb:1:d18fd993cc]nantinya yg keluar di komp 192.168.0.1 adalah pesan test...trus kalau kata test itu aq ambil dari sebuah edit text...nggak mau...keterangannya " inkompatible types:'String' and 'PChar' "...caranya gimana yaaa???... btw...thanks...deh...
user image
more 16 years ago

xerion


winexec(pchar(c:\windows\system32\cmd.exe /C net send 192.168.0.1 pesan'),sw_hide;) 
user image
more 16 years ago

mas_kofa

atau ......PChar(edit1.text).......
user image
more 16 years ago

DelphiExpert


winexec( PChar ( 'c:\windows\system32\cmd.exe /C net send 192.168.0.1 ' + Edit1.Text ) , sw_hide ) ;
user image
more 16 years ago

mas_kofa

atau ......PChar(edit1.text).......
more ...
  • Pages:
  • 1
  • 2
Share to

Random Topic

Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com