How to write this bat or vbs????
There is a text file: bak.txt
The content is as follows:
Now I want to write such a bak.bat or bak.vbs
There is a program fff.exe,
I directly drag the fff.exe to the bak.bat or bak.vbs icon, and then bak.txt becomes as follows:
Can continue to drag other programs to the bak.bat or bak.vbs icon, and continue to add in an orderly manner
───────────────── Moderation Record ─────────────────
Execution: HAT
Operation: Add search keywords in the post title; add code tags to the code
Explanation: The original title "How to write this bat or vbs????" is not conducive to forum search
Punishment: Deduct 2 points of points
Tip: It is recommended to read the following posts
{1415}The Wisdom of Asking Questions
{7326}Must-read for forum newcomers, basic code of conduct for everyone
{22703}Please don't be an impatient person
{32667} Those who can't even write the title clearly, wake up
{32825}This version is strictly rectifying bad posts
───────────────── Moderation Record ─────────────────
[ Last edited by HAT on 2008-11-24 at 02:03 ]
There is a text file: bak.txt
The content is as follows:
>>"%Temp%.\Tmp.reg" ECHO "1"="aaa.exe"
>>"%Temp%.\Tmp.reg" ECHO "2"="bbb.exe"
>>"%Temp%.\Tmp.reg" ECHO "3"="ccc.exe"
>>"%Temp%.\Tmp.reg" ECHO "4"="ddd.exe"
>>"%Temp%.\Tmp.reg" ECHO "5"="eee.exe"
START /wait regedit /s "%Temp%.\Tmp.reg"Now I want to write such a bak.bat or bak.vbs
There is a program fff.exe,
I directly drag the fff.exe to the bak.bat or bak.vbs icon, and then bak.txt becomes as follows:
>>"%Temp%.\Tmp.reg" ECHO "1"="aaa.exe"
>>"%Temp%.\Tmp.reg" ECHO "2"="bbb.exe"
>>"%Temp%.\Tmp.reg" ECHO "3"="ccc.exe"
>>"%Temp%.\Tmp.reg" ECHO "4"="ddd.exe"
>>"%Temp%.\Tmp.reg" ECHO "5"="eee.exe"
>>"%Temp%.\Tmp.reg" ECHO "6"="fff.exe"
START /wait regedit /s "%Temp%.\Tmp.reg"Can continue to drag other programs to the bak.bat or bak.vbs icon, and continue to add in an orderly manner
───────────────── Moderation Record ─────────────────
Execution: HAT
Operation: Add search keywords in the post title; add code tags to the code
Explanation: The original title "How to write this bat or vbs????" is not conducive to forum search
Punishment: Deduct 2 points of points
Tip: It is recommended to read the following posts
{1415}The Wisdom of Asking Questions
{7326}Must-read for forum newcomers, basic code of conduct for everyone
{22703}Please don't be an impatient person
{32667} Those who can't even write the title clearly, wake up
{32825}This version is strictly rectifying bad posts
───────────────── Moderation Record ─────────────────
[ Last edited by HAT on 2008-11-24 at 02:03 ]
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| HAT | -2 | 2008-11-23 10:47 |
