Yuav Ua Li Cas Los Khiav Qhov Program Tsawg

Cov txheej txheem:

Yuav Ua Li Cas Los Khiav Qhov Program Tsawg
Yuav Ua Li Cas Los Khiav Qhov Program Tsawg

Video: Yuav Ua Li Cas Los Khiav Qhov Program Tsawg

Video: Yuav Ua Li Cas Los Khiav Qhov Program Tsawg
Video: Peev xwm tsawg 2024, Hlis ntuj nqeg
Anonim

Txoj kev daws teeb meem rau qhov teeb meem ntawm kev khiav hauj lwm hauv daim ntawv tsis tshua muaj peev xwm pom nyob rau hauv kev siv cov cuab yeej txheem ntawm Microsoft Windows operating system lossis cov ntawv sau tshwj xeeb.

Yuav ua li cas los khiav qhov program tsawg
Yuav ua li cas los khiav qhov program tsawg

Cov Lus Qhia

Kauj ruam 1

Hu rau cov ntawv qhia zaub mov tseem ceeb ntawm lub Windows operating system los ntawm nias lub khawm "Pib" thiab mus rau "Yam khoom" ua kom tiav cov txheej txheem rau kev pib xa cov ntawv thov raug xaiv rau hauv daim ntawv tsis tshua muaj zog.

Kauj ruam 2

Nkag mus rau tus nqi cmd hauv "Qhib" teb thiab paub meej tias kev tua ntawm kev hais kom ua kom tiav cov "Command Line" cov cuab yeej los ntawm nias lub khawm OK.

Kauj ruam 3

Nkag mus rau tus nqi: pib / min application_name.exe hauv kab ntawv tus neeg txhais lus phau ntawv lub thawv thiab paub meej tias qhov hais kom ua los ntawm nias lub Enter muaj nuj nqi.

Kauj ruam 4

Siv tus nqi: cmd / drive_name pib / min application_name.exe kom ua kom tiav cov lus txib kom pib xaiv qhov kev pab cuam uas txiav txim siab rau hauv daim ntawv tsawg thiab paub meej tias kev tua ntawm kev hais kom ua los ntawm nias lub Enter muaj nuj nqi.

Kauj ruam 5

Xaiv cov kab lus hauv qab no syntax los qhib cov ntawv thov uas xav kom tsawg mus rau lub tais:

Khiav (@ProgramFilesDir & "\ Program_name / program_name / exe", ", @SW Tsawg)

lossis

Khiav ("program_name.exe", @ProgramFilesDir & "\ program_name ", @SW Tsawg

siv WinExec lossis ShellExec ua haujlwm.

Kauj Ruam 6

Rov qab mus rau lub ntsiab Start menu thiab mus rau Khiav mus txiav txim lwm cov kev xaiv thiab kev xaiv rau kev siv lub pob pib nyob hauv tus neeg txhais lus hais kom ua.

Kauj Ruam 7

Nkag mus rau tus nqi cmd hauv "Qhib" teb thiab paub meej tias kev tua ntawm kev hais kom ua kom tiav cov "Command Line" cov cuab yeej los ntawm nias lub khawm OK.

Kauj ruam 8

Sau tus nqi: pib /? mus rau hauv lub tshuab txhais lus xa ntawv lub thawv thiab paub meej tias qhov kev raug tua kom raug ntaus los ntawm nias tus ntxhw ntaus cim sau.

Kauj Ruam 9

Siv, lossis tsim, kab hais kom ua kab (hloov):

yog (Khoom ntiag tug. Settings. Default. AutoRun)

{

Microsoft. Win32. RegistryKey myKey =

Microsoft. Win32. Reg npe. CurrentUser. OpenSubKey (@ "Software / Microsoft / Windows / CurrentVersion / Khiav ", muaj tseeb);

myKey. Setvalue ("MyProgram. NET", Applcation. Txoj kev mob siabPath + "-hide");

Registry. CurrentUser. OpenSubKey (@ "Software / Microsoft / Windows / CurrentVersion / Khiav ", muaj tseeb);

myKey. Kuv ();

Ntawv sau npe. CurrentUser. Close ();

}

lwm tus

{

Microsoft. Win32. RegistryKey myKey =

Microsoft. Win32. Reg npe. CurrentUser. OpenSubKey (@ "Software / Microsoft / Windows / CurrentVersion / Khiav ", muaj tseeb);

myKey. SetValue ("MyProgram. NET", Daim Ntawv Thov. Piv Txiaj Ntsig + "-hide");

myKey. DeleteValue ("MyProgram. NET");

myKey. Kuv ();

Ntawv sau npe. CurrentUser. Close ();

}

yuav kom khiav tau txoj haujlwm xaiv tsawg dua.

Pom zoo: