"CROUCHING TIGER, HIDDEN DRAGON"
by
Wang Hui Ling and James Schamus and Tsai Kuo Jung
Based on the novel
by
Wang Du Lu
FADE IN:
EXT. YUAN COMPOUND - DAY
Security men and porters are loading wagons for a convoy. As they work, we see across the lake a lone horseman entering the village. One of the men recognizes him.
WORKER
Master Li is here!
ANGLE ON LI MU BAI, thirties, powerful and handsome.
In the background, old AUNT WU, at the sight of Li Mu Bai, drops her parcels and runs excitedly into the building.
INT. YUAN HALLWAY - DAY
Aunt Wu runs hurriedly through the halls.
AUNT WU
Shu Lien!
INT. YU'S ROOM - DAY
YU, a beautiful woman in her early 30s, is finishing packing for the convoy, wrapping a few small items in a linen wrapper as Aunt Wu bursts in.
AUNT WU
Li Mu Bai is here!
INT. YUAN PRACTICE HALL - DAY
LI
How's everything?
AUNT WU
Fine. Please come in.
Yu sits, composed, as Aunt Wu ushers Li in. Li carries a large object, wrapped in silk.
Yu smiles.
YU
Mu Bai... It's been too long.
LI
It has.
(he glances around the room)
How's business?
YU
Good. And how are you?
LI
Fine.
An awkward pause.
YU
Monk Zheng said you were at Wudan
Mountain. He said you were practicing
deep meditation.
LI
Yes.
YU
The mountain must be so peaceful... I
envy you. My work keeps me so busy, I
hardly get any rest.
LI
I left the training early.
YU
Why? You're a Wudan fighter. Training
is everything.
LI
During my meditation training... I came
to a place of deep silence... I was
surrounded by light... Time and space
disappeared. I had come to a place my
master had never told me about.
YU
You were enlightened?
LI
No. I didn't feel the bliss of
enlightenment. Instead... I was
surrounded by an endless sorrow. I
couldn't bear it. I broke off my
meditation. I couldn't go on. There
was something... pulling me back.
YU
What was it?
LI
Something I can't let go of. You are
leaving soon?
YU
We're preparing a convoy for a delivery
to Peking.
LI
Perhaps I could ask you to deliver
something to Sir Te for me.
Li unwraps the object. It is an ancient, astonishingly beautiful sword.
YU
The Green Destiny Sword? You're giving
it to Sir Te?
LI
I am. He has always been our greatest
protector.
YU
I don't understand. How can you part with
it? It has always been with you.
LI
Too many men have died at its edge. It only
looks pure because blood washes so easily
from its blade.
YU
You use it justly. You're worthy of it.
LI
It's time for me to leave it behind.
YU
So what will you do now?
Li doesn't reply.
YU
Come with me to Peking. You can give the
sword to Sir Te yourself. It'll be just
like old times.
LI
First I must visit my master's grave. It's
been many years since Jade Fox murdered him.
I have yet to avenge his death. And yet I'm
thinking of quitting. I must pray for his
forgiveness.
YU
Join me once you have finished. I can wait
for you in Peking.
LI
Perhaps.
EXT. THE GATE TO PEKING - DAY
Customs officials have just finished checking the contents in a row of carriages bearing the Sun Security insignia. The caravan slowly passes through the checkpoint into the boundaries of Peking. Yu, riding a handsome horse and clearly the leader, watches as her crew clears inspection.
GUARDS
Ok. Pass.
YU
Thanks. Let's go into the city.
EXT. OUTSIDE A DEPOT - DAY
Workers are busy unloading the contents from the carriage. BOSS GIAO is checking off the merchandise - a cargo of medicinal herbs.
GIAO
Everything got here safely. I'm
much obliged.
YU
Just doing my job.
GIAO
Sun Security has been the best since
your father started it. You're a credit
to his memory.
YU
Thank you.
GIAO
I mean it.
EXT. PEKING - DAY
From a gray tiled roof, we can see Peking's magnificent grid of houses extending miles and miles out, freshly painted by the morning sun.
EXT. PEKING STREET - DAY
Dusty and congested as always, people, horses, and carriages are fighting to get through the boulevards.
A group of jugglers perform at a corner.
Yu surveys the busy street from on top of her horse.
INT. TE'S GREAT HALL - DAY
Yu presents the sword to SIR TE.
SIR TE
This is Li's personal sword, a great
hero's weapon! He is the only one in
the world worthy of carrying it. It's
too fine a gift. I cannot accept it.
YU
Sir Te! It has brought him as much
trouble as glory. Help him to leave
these troubles behind. Otherwise,
he'll never be able to start anew.
SIR TE
All right. I'll act as the sword's
custodian.
DE LU, the head servant, enters.
DE LU
Governor Yu has arrived.
SIR TE
I must change.
YU
(getting up)
You've always been so good to Li Mu Bai
and me. Please accept our thanks.
SIR TE
Please do not be such a stranger. You'll
stay the night as my guest. Now, Shu Lien...
tell me something. Your father was a great
friend to me, and I think of you as my own
daughter.
YU
Please, Sir Te, what is it?
SIR TE
Li Mu Bai giving up his sword and his
warrior days... maybe he's trying to tell
you something?
YU
I don't know...
SIR TE
Don't be coy. I've always known about your
feelings for each other. All these years,
it's a shame... neither of you is brave
enough to admit the truth to the other.
You're both wasting precious time.
YU
I beg your pardon. Li Mu Bai and I aren't
cowards.
SIR TE
When it comes to emotions, even great
heroes can be idiots. Tell me if Li Mu Bai
is not more open the next time you see him.
I'll give him an earful!
INT. TE'S STUDY - DAY
Yu and De Lu approach the study.
DE LU
Sir Te said to leave the sword in here.
De Lu opens the door and is startled to find a young woman inside. The woman is studying the sheets of calligraphy hanging on the walls.
DE LU
Who are you?
JEN
I'm your guest today. I am Governor
Yu's daughter.
DE LU
This is Sir Te's study. You are here
to...
JEN
I was looking for a quiet corner.
DE LU
I am Sir Te's head servant. And this is
another of our guests.
INT. TE'S STUDY - DAY
Yu gently lays the sword, still in its sheath, in Jen's hands.
JEN
It's heavy for such a thin piece of
metal!
YU
The handle is heavy. And the blade is no
ordinary metal. Still, the sword is the
lightest of weapons. You're just not used
to handling it.
JEN
But I have had much practice. As a child
in the West, a platoon lived with us.
They'd let me play with their weapons. The
scabbard is so beautiful.
YU
Beautiful but dangerous. Once you see it
tainted with blood, its beauty is hard to
admire. It's 400 years old.
JEN
Exquisite! You said it belongs to...
YU
My friend Li Mu Bai. He's given it to Sir
Te as a gift.
JEN
Li Mu Bai! The famous warrior? Why would
he give his sword to Sir Te?
YU
You're too young to understand.
JEN
You're a sword fighter too?
Yu yanks the sword out of the sheath. An eerie sound resonates within the study. Jen is even more impressed.
YU
Yes, I am. But I prefer the machete.
Certain moves, however, call for a sword.
JEN
Really?
Yu puts the sword back in the case.
JEN
(longingly)
It must be exciting to be a fighter, to
be totally free!
YU
Fighters have rules too: friendship,
trust, integrity... Without rules, we
wouldn't survive for long.
JEN
I've read all about people like you.
Roaming wild, beating up anyone who gets
in your way!
YU
Writers wouldn't sell many books if they
told how it really is.
JEN
But you're just like the characters in
the stories.
YU
Sure. No place to bathe for days, sleeping
in flea-infested beds... They tell you all
about that in those books?
JEN
You know what I mean. I'm getting married
soon, but I haven't lived the life I want.
YU
So I heard. Congratulations. It's the most
important step in a woman's life, isn't it?
JEN
You're not married, are you?
YU
What do you think?
JEN
No! You couldn't roam around freely if
you were.
YU
You're probably right.
Yu studies Jen. The room falls silent for a moment.
EXT. SIDE COURT YARD - DAY
It's dusk and the sky is a beautiful orange and purple. Jen is leaving the study escorted by her maid. She turns to Yu for a final good-bye. Yu seems intrigued by the encounter.
EXT. SIR TE'S COMPOUND - NIGHT
Two lighted lanterns are raised up.
INT. TE'S STUDY - NIGHT
Sir Te hands the sword to Governor Yu.
SIR TE
Go ahead, Governor Yu.
Governor Yu is impressed by the opulance and elegance of the sword. He closes his eyes to guess the weight of the sword. Te snubs out the flame from a candle, then slides the sword out from its sheath. The sword gives off a luminous blue glow in the dark.
SIR TE
Two feet 9 inches long. 1 inch wide. The
handle is 1 inch deep, 2.6 inches wide.
Seven-tenths of an inch thick. With seven
rubies missing from the hilt. You can tell
the design dates back to before the Chin
era. Engraved with a technique lost by the
time of the Han Dynasty.
GOVERNOR YU
Your knowledge is remarkable, Sir Te.
SIR TE
A sword by itself rules nothing. It comes
alive only through skillful manipulation.
GOVERNOR YU
I see your point. Please continue.
SIR TE
The Imperial Court isn't the problem. With
royalty and officials everywhere, the Royal
Guard keeps security tight. But Peking is
not like the West. Here, you'll find all
sorts of characters. Proceed with caution in
your quest for law and order. Don't depend
only on the court. Contacts in the Giang Hu
underworld can ensure your position. Be
strong, yet supple. This is the way to rule.
INT. JEN'S ROOM - NIGHT
A maid warms her hands in a basin of hot water for Jen, then walks over to Jen and helps remove her earrings. Someone knocks and the maid goes to answer the door.
MAID
Governess...
GOVERNESS
Let me do it.
The maid leaves as the governess enters the room.
JEN
Please sit.
GOVERNESS
I've made you silk pajamas. Do you want
to change into them?
JEN
Put them down.
GOVERNESS
I heard you met Shu Lien today.
JEN
Do you know her?
GOVERNESS
She's one of those. Your mother would not
want you consorting with her kind.
Jen shoots her an angry look.
JEN
I'll socialize with whomever I please.
GOVERNESS
Don't invite danger into your father's
house.
She's about to say something, then thinks better of it.
JEN
I'm tired now.
GOVERNESS
Go to bed then. Miss has grown up, and is
getting married soon. God knows what the
future will bring.
JEN
It will be just the same. Enough! I'm
tired.
GOVERNESS
Autumn is coming. I'll shut the windows
for you.
The governess leaves. Jen sits on the side of her bed, thinking.
EXT. TE'S COMPOUND - NIGHT
A wide shot of the compound. A patrol man greets MASTER BO, Sir Te's head of security. The place is serene.
MASTER BO
Chilly, eh?
NIGHTMAN
Yes, Master Bo.
As Bo walks on, shadows rustle in a treetop in the background.
EXT./INT. INSIDE AND OUTSIDE OF TE'S STUDY - NIGHT
A masked FIGURE silently opens the window and enters the room. It moves swiftly to the sword case, opens it, and wraps the sword.
Bo enters, sees the thief, who leaps up to the ceiling. The thief steps over Bo and out into the courtyard. Bo tries to stop the thief, who easily outwits him, jumping onto the roof as Bo yells out:
BO
Someone help! Stop him! He's on the roof!
The sword's been stolen! Stop thief! Stop
him!
The thief skips a few times and jumps off to a side street.
Bo grabs a pole and runs as GONGS begin to SOUND, alerting people to the theft. People rush outside, Yu Shu Lien among them.
EXT. PEKING STREET - NIGHT
Bo runs through the streets. The thief is nowhere in sight. Suddenly, there are SOUNDS of WEAPONS CLASHING. Bo hurries towards the source.
EXT. AN ALLEY OUTSIDE GOVERNOR YU'S COMPOUND - NIGHT
Bo is surprised to see the hooded Figure battling with two other fighters - TSAI (male, 40s) and MAY, his daughter.
TSAI
It's Jade Fox!
MAY
We must avenge mother!
The hooded Figure does a gravity-defying flip and soars over a wall just as Bo arrives.
BO
Do something! He's getting away!
EXT. PEKING ROOFTOP - NIGHT
The thief runs atop a roof - right into Yu. Yu and the hooded Figure face off.
YU
Return the sword and I'll let you go.
The Figure just regards her, slightly shifting weight.
Yu attacks, but the Figure repels her.
YU
You've been trained at Wudan?
The Figure answers by leaping to another rooftop. Yu catches up and resumes her attack with a relentless series of lightning-quick blows.
EXT. ALLEY OUTSIDE GOVERNOR YU'S COMPOUND - NIGHT
Bo follows Tsai and May, who are quickly walking away.
TSAI
You're mistaken. We're just street
performers. We were rehearsing.
MAY
Father!
BO
You were rehearsing? Who are you
trying to fool?
May wants to respond but is again cut off by Tsai. They run off.
BO
Where did that thief go?
Bo looks around and discovers that he has chased the thief into Governor Yu's compound.
BO
Governor Yu's house?
EXT. ROOFTOP
Yu and the Black Figure continue to fight.
YU
Get down here! Give back the sword!
EXT. GOVERNOR YU'S - NIGHT
Yu slowly gets the upper hand in her fight with the thief. A small arrow cuts across the night and flies toward Yu. She catches it, but the masked Figure takes the opportunity to get away.
Yu pauses to feel the arrow in her hand, standing in the empty courtyard.
EXT. TE'S SIDE ENTRANCE - DAY
De Lu escorts Yu into Te's.
DE LU
Sir Te awaits you.
INT. TE'S GREAT HALL - DAY
Men are standing at attention. Bo is giving his account of what happened as Yu enters.
BO
I'm sure the thief is in the Yu
household.
SIR TE
How dare you imply?
BO
But I saw-
SIR TE
-Enough.
The men hustle out. Bo can barely contain his frustration.
YU
Has Governor Yu ever seen the sword?
SIR TE
Yes, though I doubt he's involved
in this.
YU
But the sword could be in his
compound.
SIR TE
Then someone's trying to set him up.
We should inform Li Mu Bai.
EXT. OUTSIDE GOVERNOR YU'S COMPOUND - NIGHT
Madam Yu is returning from temple. The Governess is helping her out of the carriage. Servants are peeling bills off a wall across the street.
MADAM YU
What is it?
MAID
Madam Yu, someone's put up posters.
A partially torn flier with the words "Jade Fox will not escape justice!" is seen on the ground.
MADAM YU
Let me see.
GOVERNESS
Someone is after Jade Fox.
Preposterous, looking for her here!
Madam Yu nods and walks inside, as the Governess tosses the flier away and follows her. A hand scoops up the filer - it is Yu. She studies it, then puts it in her pocket, and moves on.
EXT. BRIDGE - DAY
Bo is searching for the Tsais. The bridge is full of jugglers. But the two are nowhere to be found.
EXT. PEKING STREET - DAY
Bo quizzes a HOMELESS MAN.
BO
Where are they?
HOMELESS MAN
I don't know. I haven't seen them in
two days.
Bo is about to give up when he looks up and sees May walking quickly into an alley. Bo follows her.
EXT. IN FRONT OF TSAI'S HOUSE
May walks into a dilapidated house surrounded by a broken-down bamboo fence. Bo inches closer and sees May and Tsai oiling their weapons.
INT. BO'S ROOM - DAY
Jen practices calligraphy. The Governess is by her side embroidering and throwing occasional glances at Jen. The Maid enters.
MAID
There is a Miss Shu Lien here to
see you.
Jen stops and looks up at them.
GOVERNESS
Miss is busy right now.
MAID
I'll tell her.
JEN
Show her in.
The Governess shoots her a look.
GOVERNESS
This spells trouble.
JEN
I have a guest.
The Governess gets up to leave just as the Maid shows Yu in.
MAID
This way please.
The Governess and Yu exchange quick glances. The Governess bows slightly and departs.
JEN
I've missed you.
YU
How so?
JEN
I'm bored.
Yu sees the calligraphy.
YU
You're doing calligraphy?
JEN
I'll write your name. Just for fun.
Jen writes Yu's name with great confidence and swiftness.
YU
I never realized my name looks
like "sword."
Jen freezes slightly.
YU
You write gracefully. Calligraphy is
so similar to fencing.
JEN
Maybe it is. I wouldn't know.
The Maid enters with tea.
JEN
Please.
YU
Thank you for seeing me. I hear your
wedding day is near. You must be
overwhelmed by the preparations.
JEN
I'm hardly doing a thing. The less I
think of it the better. My parents
are arranging everything. The Gous
are a very powerful family. My
marrying one will be good for my
father's career.
YU
You are fortunate to marry into such
a noble family.
JEN
Am I? I wish I were like the heroes
in the books I read. Like you and
Li Mu Bai. I guess I'm happy to be
marrying. But to be free to live my
own life, to choose whom I love...
That is true happiness.
YU
Do you think so? Let me tell you a
story.
JEN
About you and Li Mu Bai?
YU
Yes. Did you know I was once
engaged to be married?
JEN
No, really?
YU
His name was Meng Si Zhao. He was
a brother to Li Mu Bai by oath. One
day, while in battle, he was killed
by the sword of Li Mu Bai's enemy.
After, Li Mu Bai and I went through
a lot together. Our feelings for
each other grew stronger. But how
could we dishonor Meng's memory? So
the freedom you talk about, I too
desire it. But I have never tasted it.
JEN
Too bad for Meng, but it's not your
fault, or Li Mu Bai's.
YU
I am not an aristocrat, as you are...
but I must still respect a woman's
duties.
JEN
Don't distance us. From now on, let's
be like sisters.
YU
Then as a sister, let me wish you
happiness in your marriage.
EXT. YU'S GARDEN - DAY
The Maid escorts Yu out. Yu pauses, looks around, and sees the profile of the Governess peering at her from around a corner.
INT. JEN'S ROOM - NIGHT
Moonlight spills into the room as Jen rises sleeplessly from bed and looks out the window. A light breeze stirs her hair. The sound of the wind rises, and slowly her face DISSOLVES INTO...
INT./EXT. CARRIAGE/MONGOLIAN DESERT - DAY
...the face of a younger, less sophisticated Jen, as she lets the dry desert air flow through her hair. She sits in a carriage, part of a caravan, with guards on horseback, that is traveling through the spectacular desert. Across from her sits her mother, of whom she is barely cognizant.
MADAM YU
What a godforsaken place! Can't your
father be appointed closer to
civilization? Jen... are you listening
to me?
Jen is still looking out the side of the carriage, at a beautiful mountainside.
INT. JEN'S ROOM - NIGHT
Jen sighs and turns back toward her bed.
EXT. STREET OUTSIDE GOVERNOR YU'S COMPOUND - NIGHT
Tsai and May have been sitting, hidden in the branches of a tree, watching Jen.
TSAI
Let's go!
They drop down silently and walk away. From another rooftop, LO looks silently on.
EXT. TSAI'S HOUSE - NIGHT
Tsai and May enter the house.
INT. TSAI'S HOUSE - NIGHT
Inside the tiny house, they discover a hooded Figure going through their belongings.
Immediately, Tsai throws a knife, which rips off the Figure's mask- revealing Bo. Tsai has another long knife at his throat.
TSAI
Who are you?
BO
Wait! I'm a friend!
Tsai pauses.
INT. TSAI'S HOUSE - NIGHT (LATER)
May fans a small coal-fired grill that is boiling a sizzling pot of vegetable and meatball soup. Her father and Bo are now friendly dinner companions, much to May's delight.
TSAI
I don't care about your sword.
BO
Why were you spying on the Yus?
TSAI
I'm looking for someone. Jade Fox.
I'm a police inspector from Shaan Xi,
Gen Su district. Jade Fox is a master
criminal. I hear she infiltrated the
Yus. She must have come with them when
they transferred here. But with Yu's
reputation, I can't just go in and
accuse her.
BO
This Jade Fox is a woman?
TSAI
Yes.
BO
Then leave her to me.
TSAI
Pardon me, but I doubt you can handle
her. My wife was quite a martial arts
expert. Jade Fox killed her. So you
see, this is personal. Leave her to me.
MAY
It's ready! (re: the soup)
BO
I'm ready for anything!
Bo fishes into the pot with his chopsticks. May intercepts him with her own chopsticks.
MAY
Father gets first dip.
Tsai stiffens and snaps his chopsticks, not to pick up a meatball but to catch an incoming dart. A dart wrapped with a note. Bo jumps up.
TSAI
They're gone.
MAY
What does it say?
TSAI
"We'll settle this at midnight on
Yellow Hill." Good, the fox is out of
her hole.
INT. TE'S STUDY - NIGHT
Yu is ushered into the room, to discover Sir Te talking to another man, whose back is to her.
SIR TE
Shu Lien, look who's here.
The man turns around- it's Li Mu Bai.
EXT. TE'S HALL - NIGHT
Yu and Li Mu Bai sit together.
LI
Sir Te believes it's a ploy to
cast suspicion on Governor Yu.
YU
But something is going on at the
Yu household.
LI
What have you discovered?
From her sleeve, Yu removes the flier. Li takes it, his face darkening.
LI
Jade Fox? Impossible.
YU
You always suspected she's fled to
the West.
LI
I didn't think she'd dare come back
to Peking!
YU
Is there any place safer than under
the nose of Governor Yu?
LI
So I shall avenge my master's death
after all.
YU
Be careful. Sir Te requires discretion.
Official business is difficult enough.
Don't let personal feelings make it
worse. And I don't know... even this
poster... could be some sort of trap.
LI
Did you see who posted it?
Yu pauses.
YU
No.
LI
It says Jade Fox is hiding at Yu's.
On the night of the theft there was a
brawl near Yu's. Were you involved?
YU
It was Bo, Sir Te's man. I hear he
followed the thief to the Yus'.
LI
Have you questioned him yet?
YU
No, not yet...
LI
But your men are watching over Yu's
compound?
YU
No, I'd already sent them home. You
can blame me for losing the sword, but
please trust that I'll get it back soon
using my own methods.
LI
That's not what I meant. I don't care
about the sword.
YU
What do you mean? Didn't you come back
here for it?
LI
I didn't know it was stolen until I
got here.
YU
Then why did you come?
LI
Well, we had talked...
De Lu enters.
DE LU
Pardon my intrusion, Master Li, your
room is ready.
LI
Thank you. Please lead the way.
EXT. YELLOW HILL - NIGHT
Tsai, Bo, and May wait under an ancient tree. Bo stifles a yawn.
BO
The fox doesn't care much for
punctuality. Still no sign of her.
An old lady struggles up the hill, wearing a floppy hat over her face, holding a cane. The three exchange glances.
TSAI
Enough! Show yourself!
The old woman shrinks in fear, but then throws off her disguise and unveils herself- the Governess.
FOX
Tsai... you dog! You will pay for
your stubbornness.
BO
That's what you think, old witch!
TSAI
If you surrender now, you'll suffer
less. But if you resist, I won't stop
until you're dead.
MAY
Father! Let me avenge my mother's death!
FOX
You'll soon end up like her, you little
whore!
BO
You'll pay for that!
A fierce battle begins, the main fighting between Tsai and Fox, with May and Bo getting a stab in occasionally, when the opportunity presents itself.
TSAI (to Bo)
She's going to paralyze you!
Using accupressure, Fox disables Bo. May shoots an arrow at her, but she catches it and flings it back, hitting May.
TSAI
May!
Fox then disables Tsai, but just as she goes for the kill, Li Mu Bai flies down from the treetops and steps between them.
FOX
Tsai, you filthy mongrel! An ambush!
MAY
Father, are you all right?
Li addresses Fox.
LI
Wudan should have gotten rid of you
long ago. It's been a long time, Jade
Fox! You don't remember me... But you
should remember my master. You
infiltrated Wudan while I was away.
You stole our secret manual and
poisoned our master! Now it's time for
you to pay!
FOX
Your master underestimated us women.
Sure, he'd sleep with me, but he
would never teach me. He deserved to
die by a woman's hand!
LI
You stole the secrets of Wudan's highest
martial arts. But after ten years of
training, your moves are still
undisciplined. And today, under a Wudan
sword... you will die!
Li easily brings Fox to the ground.
Li raises his sword to the prostrate Fox. A Figure masked in black appears next to Fox, sword extended, saving her.
FOX
Disciple, we'll kill them all!
FIGURE IN BLACK
Let's go!
BO
Another one!
FOX
I must get rid of Tsai!
Fox fights Tsai, Bo, and May, as Li addresses the masked Figure.
LI
Who are you? Why is the Green Destiny
in your possession?
FIGURE IN BLACK
What's it to you?
LI
My name is Li Mu Bai. The Green Destiny
is mine. Jade Fox can't be your master.
Where did you learn that "Xuan Piu" move?
FIGURE IN BLACK
I'm just playing around.
LI
Tell me, who is your master?
FIGURE IN BLACK
Let's go!
FOX
We must kill them!
Tsai throws his blade at Fox, who catches it and throws it back, hitting him in the head. Fox and the masked Figure leap away.
May drops to the ground, cradling her dead father's head. Bo kneels beside her.
MAY
Father!
EXT. TE'S - DAY
Te and a group of his men look down as a cloth is removed from the body of Tsai. Bo and May stand before them.
TE
This is Tsai?
MAY
My father. Police Inspector from Shaan.
TE
This should be reported to Governor Yu.
The victim is an officer. You believe
the killer is hiding out in his
compound?
YU
I'd bet my life on it!
TE (to Li and Yu)
Come with me.
He exits the room.
INT. TE'S STUDY - DAY
Te, Li, and Yu are seated.
SIR TE
This needs to be resolved, and
quickly.
LI
I'll get into the Yu household and
get her. I'll ferret out Fox and her
gang.
YU
We must be careful. Governor Yu is a
court official, and in charge of
security. Any disturbance will cast
suspicion on him. It might get Sir Te
in trouble.
SIR TE
This is a delicate matter.
YU
Sir Te, can you find some excuse to
invite Madam Yu and her daughter?
SIR TE
What do you have in mind?
YU
The best way to trap a fox is through
her cubs.
Sir Te and Li look puzzled.
EXT. SIR TE'S GARDEN - DAY
Yu sits with Madam Yu and Jen. They busy themselves with various items for her trousseau.
MADAM YU
Madam Te is certainly spoling us with
these wedding gifts. She's being so
considerate.
YU
I'm sorry she's not feeling well enough
to receive you today.
MADAM YU
I heard Sir Te lost something. And now
Madam Te's not feeling well...
Jen sits silently reading.
YU
We know who stole the missing item. If
the thief returns it, I'm sure Sir Te
will pursue the matter no further.
MADAM YU
That's good. Sometimes the help can't
keep their hands to themselves. It's
very embarrassing.
YU
Sir Te knows that even well-meaning
people can make mistakes... that can
bring ruin to themselves and their
families.
MADAM YU
But don't be too lenient.
YU
No mercy will be shown toward the
murderer who turned up in Peking.
MADAM YU
A murderer?
YU
Yes. The very killer of Li Mu Bai's
own master. Last night, she killed a
policeman who had tracked her down.
MADAM YU
A female criminal? Now that's news!
Jen becomes visibly upset.
JEN
You say she killed a policeman?
YU
Yes, from the West. He went
undercover and followed her here.
MADAM YU
Maybe the murderer and the thief are
one and the same.
YU
I doubt it. This thief... is very
unusual...
As Yu speaks, she lifts the teapot to pour Jen some tea. As she finishes speaking, she looks into Jen's face and the pot slips from her hand. Without even looking down, Jen instinctively catches the pot with a lightning-fast move.
YU
...And most likely smarter than a
mere killer.
Sir Te and Li Mu Bai walk by.
JEN
(formal)
Greetings, Sir Te.
SIR TE
Hello, Madam Yu. This is Li Mu Bai,
the renowned swordsman.
LI
Delighted to meet you.
Li sizes Jen up.
TE
Miss Yu is soon to be married.
LI
Congratulations.
EXT. TSAI'S HOUSE - NIGHT
May opens her door, only to find Bo standing guard.
MAY
Why don't you come in?
BO
I'm standing guard.
MAY
Come in. It's cold.
She turns back inside, hesitates, then turns back to him.
MAY
Come in. We don't have to fear Jade
Fox if we're together.
EXT. TE COMPOUND - NIGHT
A still, dark night.
EXT. TE'S STUDY - NIGHT
Something moves in the moonlight. A hooded Figure jumps down.
Li Mu Bai, who had been hiding in the shadows, comes forward.
LI
Isn't a bit too late to be out?
You've brought me the sword?
FIGURE
I do as I please.
The masked Figure lunges away, but Li Mu Bai leaps with incredible speed and grabs the sword from her.
LI
Where's your master?
FIGURE
What's it to you?
The Figure floats away. Li chases after her.
EXT. PEKING STREET - NIGHT
The two fly over houses and bounce off of rooftops, displaying amazing floating skills.
INT. ABANDONED MONASTERY - NIGHT
The Figure bounces into an old monastery. Li is already there.
LI
Had enough flying? You've got
potential. You've studied the Wudan
Manual but you don't understand it.
You need a real master.
The Figure doesn't respond, but we sense the pride in her eyes.
FIGURE
Do you think you are a real master?
LI
Like most things, I am nothing. It's
the same for this sword. All of it is
simply a state of mind.
FIGURE
Stop talking like a monk! Just fight!
LI
Then tell me where Jade Fox is.
FIGURE
On guard!
LI
Real sharpness comes without effort.
EXT. MONASTERY - NIGHT
The Figure leaps into the garden, but again, Li is ahead of her.
The Figure attacks Li, who uses his agility to evade her. Frustrated, the Figure intensifies her attack.
The Figure, losing composure, attacks wildly. Li gets even more elusive, using a branch to repel her.
LI
No growth without assistance. No
action without reaction. No desire
without restraint. Now give yourself
up and find yourself again. There is
a lesson for you.
Li now holds the stick to her mask, gently raising it slightly.
FIGURE
Go ahead.
LI
Why should I? You need practice. I
can teach you to fight with the Green
Destiny, but first you must learn to
hold it in stillness.
FIGURE
Why do you want to teach me?
LI
I've always wanted a disciple worthy
of Wudan's secrets.
FIGURE
And if I use them to kill you?
LI
That's a risk I'm willing to take.
Deep down, you're good. Even Jade Fox
couldn't corrupt you.
The Figure's eyes cloud with tears.
FIGURE
Wudan is a whorehouse! Keep your lessons!
The Figure swirls and takes off, leaving a rueful Li standing alone in the monastery.
INT. JEN'S ROOM - NIGHT
Jen slips in through the window. She pulls off her mask as she spots the Governess/Fox sitting and sewing.
FOX
You're home late... or should I say
early?
JEN
Why are you still here? You killed a
policeman. You should leave! You'll
bring ruin on my whole family.
FOX
They wouldn't have found me if you
hadn't stolen the sword. Like a little
girl, you thought stealing would be
fun? You, too, are responsible for that
death. Come with me. You don't want to
waste your life as the wife of some
bureaucrat. Denied your talent... As a
master and disciple we will rule.
JEN
I'll never live as a thief!
FOX
You're already a thief.
JEN
That was just for fun. How can I leave?
Where would I go?
FOX
Wherever we want. We'll get rid of
anyone in our way. Even your father.
JEN
Shut up!
FOX
It's the Giang Hu fighter lifestyle...
kill or be killed. Exciting, isn't it?
JEN
I owe you nothing.
FOX
Yes, you do! You are still my disciple!
Jen lunges at the Governess, and the two exchange a few blows. Jen presses her finger against one of the Governess' pressure points, disabling her. Jen pushes her across the room.
JEN
You think you've been teaching me all
these years from the manual? You
couldn't even decipher the symbols!
FOX
I studied the diagrams. But you hid
the details!
JEN
You wouldn't have understood, even if
I had tried to explain. You know...
you've gone as far as you can go. I hid
my skills so as not to hurt you.
FOX
If I hadn't seen you fight with Li Mu
Bai, I'd still be ignorant of all
you've hidden from me.
JEN
Master... I started learning from you
in secret when I was 10. You enchanted
me with the world of Giang Hu. But once
I realized I could surpass you, I
became so frightened! Everything fell
apart. I had no one to guide me, no one
to learn from.
FOX
Believe me, I've a lesson or two left
to teach you!
Fox exits.
EXT. GOVERNOR YU'S GATE - DAY
The Governess leaves, a small sack over her back.
EXT. TE'S COURTYARD - DAY
Li practices fluently with Green Destiny in hand, beautifully at ease with the weapon. He spins around to find Yu standing in the doorway.
YU
The sword is back... are you happy?
Li smiles.
LI
I admit, getting it back makes me
realize how much I'd missed it.
YU
But it's not your sword anymore. You
gave it to Sir Te.
LI
True. But I must borrow it for one last
mission. Jade Fox must die at its edge.
Did you know what you were hiding when
you covered for that girl?
YU
My job was to get the sword back without
embarrassing anyone. I wasn't about to
ruin her life, or her father's.
LI
You did your job well. But, this girl...
I saw her last night.
YU
I knew she would intrigue you.
LI
She needs direction... and training.
YU
She's an aristocrat's daughter. She's
not one of us. In any case, it will all
be over soon. You'll kill Fox, and
she'll marry.
LI
That's not for her. She could come to
Wudan and become a disciple.
YU
But Wudan does not accept women.
LI
For her, they might make an exception.
If not, I'm afraid she'll become a
poisoned dragon.
YU
It's not our affair. Even if Wudan
accepts her, her husband might object.
LI
I thought by giving away the sword, I
could escape the Giang Hu world. But
the cycle of bloodshed continues.
YU
I wish there were something more I
could do to help you.
LI
Just be patient with me, Shu Lien.
INT. JEN'S ROOM - NIGHT
Jen is asleep. A noise awakens her.
Lo opens the window and sneaks in- right into the point of Jen's waiting sword.
Jen's sword drops to the ground.
JEN
Lo?
LO
Jen!
Lo grabs her by the waist.
JEN
You shouldn't have come.
LO
With all the traffic on your rooftop
these days... it took me a while to
get in here. I can't wait any longer.
I was wrong to let you go. Come back
with me. You'll be happy in the desert.
You'll be free there.
Jen turns back to him and rests herself briefly in his arms again.
JEN
You've been looking for me all this
time?
FLASHBACK: FOUR YEARS EARLIER
INT./EXT. CARRIAGE/MONGOLIAN DESERT - DAY
Jen holds up a comb, with daylight shining through it. Jen admires the piece, her most prized possession.
Madam Yu sits opposite her.
MADAM YU
Jen... stop playing with it.
Jen looks out over the desert, as the wind picks up and the sky darkens.
JEN
I won't break it.
EXT. CARRIAGE/MONGOLIAN DESERT - DAY
Lo and a group of armed bandits descend on the caravan.
GUARD A
It's Dark Cloud! Dark Cloud is coming!
His warning is useless. From Jen's POV, we see the guards slaughtered in a hail of arrows and swords.
MADAM YU
Lower the shade, don't let them see
you!
DARK CLOUD (LO)
Don't touch the women!
Though unharmed, Madam Yu immediately faints. Lo approaches the carriage and grabs the comb from Jen's hand.
She bolts from the carriage, and, once outside, bends down and grabs a lance from the body of a dead guard, whose horse flails beside him.
She looks up to see the gang of bandits already making their escape on horseback.
LO
Let's go!
EXT. DESERT - DAY
Jen and Lo ride across the desert floor at breakneck speed.
LO
Come get your comb.
She tries to jab him with the lance, but he grabs it and flings her off her horse.
LO
Hurry back to your mother.
Lo rides on as she charges after her horse.
EXT. DESERT BLUFF - DAY
A group of bandits is dividing up the loot as Jen rides up, keeping a respectable distance. They notice her and rise as she dismounts.
One of them saunters over to her and stands, grinning, a few feet away.
In a second, she's slammed his balls into his stomach and his nose into his face. He crumples to the sand.
The other bandits stop laughing, quickly exchange glances, and charge her at once.
In a matter of seconds, they're either on the ground or dragging their fallen comrades back.
Lo calls out and stops the fight.
LO
She's mine.
EXT. DESERT - DAY
Lo and Jen ride, if not side-by-side, then parallel, about 20 feet apart. Their pace has slowed considerably. In fact, they're dead tired.
LO
Let's stop a moment.
JEN
Give it back!
LO
(shouting a bit)
You're tired. You need rest. Your
horse needs water. There's a creek up
here.
He dismounts, looks down at the dry creek bed.
LO
Well, there used to be! What's your
name? I'm Lo. The Hans call me Dark
Cloud. I'm not that tall or big, but
I'm quick as lightning.
JEN
My comb!
She kicks him. They fight ferociously until Lo, exhausted, collapses. She kicks him a few times, then collapses too.
INT. CAVE - DAY
Jen comes to and finds herself wrapped in a blanket of animal fur. She sits up with a start and checks her clothes. Looking around, she realizes she's in a cave. Next to her are a lamp, some hunting equipment, and a neat row of sharp arrows. She quickly grabs one of the arrows.
LO
If you like that arrow, I can make
you a bow. Great for hunting wild
chicken. They're delicious.
Jen raises one of the arrows, going on the attack again, but her legs betray her and she falls.
LO
You need to eat, understand? Then
you'll have the strength to fight.
Understand?
He helps her up, then pours her some horse milk from a sac. He hands her a small chunk of food, which she first accepts grudgingly, then, her hunger getting the better of her, she starts to wolf it down.
LO
You're eating too fast. Slowly.
EXT. CAVE - DAY
Lo walks out into a barren mountain landscape. A chicken roasts over a fire. Lo whistles.
Jen appears suddenly with a rock and knocks it over his head. Lo passes out as Jen scurries away.
EXT. MOUNTAINSIDE AND DESERT - DAY
Jen tries to find her way among the treacherous stony terrain, her lips chapped and fingers bloody and blistered. But soon she passes out.
INT. CAVE - NIGHT
Jen again awakes inside the cave. Lo tries to feed her some water, but she chokes and tries to push him away, only to find that her legs and hands are tied up.
LO
You've got quite a temper. It's
better this way.
JEN
You coward!
LO
Still in a bad mood? At least you're
speaking. What's your name?
Jen spits at Lo.
LO
I didn't think the Hans had names
like that.
LATER: She weaves in and out of consciousness. In the flickering lights, she sees Lo sharpening his arrows.
LATER: Lo pulls back an opaque curtain to reveal a makeshift bathroom- a water-filled cavity serves as a tub.
He rises as Jen sobs at the sight of her imprisoned and dishevelled body. He comes over and unties her.
LO
Relax. If I had wanted to, I would
have already done it. You must be
dying for a bath. Fresh water's hard
to get here. But I managed to bring
some up. You can wear my clothes when
you're done. They're clean. Don't
worry. I'll sing so you'll know where
I am. After the bath, you'll be calmer.
Jen nods and the bandit releases her. He starts to sing as he walks out. Jen waits until the sound recedes before closing the curtain behind her and dipping into the pit. While she bathes, she listens to his singing, a loud rendition of a tribal song. Lo apparently doesn't remember all the lyrics, and la-las his way through more than a few passages. Jen smiles.
INT. CAVE - NIGHT
Jen grimaces as Lo pulls the last of some cactus needles from the soles of her feet.
LO
No more hitting on the head! All this
trouble for a comb?
JEN
It's mine. It means a lot to me. A
barbarian like you wouldn't understand.
LO
Not true. I can use it to pick fleas
from my horse.
JEN
By the way, I'm a real Manchurian.
LO
I'm sorry... I guessed wrong. I thought
you were a Han.
JEN
Give me back my comb.
LO
I don't take orders from anyone.
JEN
Give it back.
Jen impulsively grabs an arrow and stabs Lo, drawing a little blood from his chest. Furious, Lo lunges at her and they tussle briefly. Fianlly, Lo gets on top of Jen, and the scuffling becomes more like foreplay. Violence turns into unleashed passion.
EXT. DESERT OASIS - DAY
Lo and Jen ride across the desert. Jen holds tightly to him.
EXT. CAVE - NIGHT
Lo and Jen lie in the bath together.
LO
When I was a boy, one night, I saw
a thousand shooting stars. I thought,
where did they all go? I'm an orphan.
I used to look for stars alone. I
thought if I rode to the other end of
the desert, I'd find them. I've been
riding in the desert ever since.
JEN
And so, the little boy became a
fearsome bandit. He couldn't find the
stars, so he stole my comb.
Lo pauses.
LO
Out here, you always fight for survival.
You have to be part of a gang to stand a
chance. Slowly, your gang becomes your
family. All that Dark Cloud stuff is just
to scare people and make my life easier.
JEN
So you're still that little boy looking
for shooting stars.
LO
I am a man. And now I've found the
brightest star of all.
EXT. DESERT - DAY
Lo sees uniformed men through his binoculars.
LO
Your father's men are looking for you.
Jen doesn't respond.
EXT. DESERT - DAY
Lo and Jen ride through a mountain pass.
EXT. CLIFF - DAY
Lo and Jen stand at the crest of a cliff. Lo looks over, viewing the desert valley below as Jen joins him. They see a troop of uniformed men riding by in the distance.
LO
Your father's men are still looking
for you. They're still out there,
circling closer.
JEN
Let them look.
LO
It is trouble for me.
Jen bites her lip.
JEN
Don't send me back!
LO
You must decide. You might get tired of
this life. You might begin to miss your
family. If it were our daughter, we'd
look for her too. She would miss us.
Jen... I want you to be mine forever. I
will make my mark on the world. I will
earn your parents' respect. We have a
legend. Anyone who dares to jump from
the mountain, God will grant his wish.
Long ago, a young man's parents were ill,
so he jumped. He didn't die. He wasn't
even hurt. He floated away, far away,
never to return. He knew his wish had
come true. If you believe, it will
happen. The elders say, "A faithful heart
makes wishes come true."
INT. TENT - DAY
Jen and Lo kiss. Jen takes the jade comb out of her hair and presses it into his palm. Jen starts to cry. They embrace.
JEN
Keep it safe. Return it to me when we are
together again.
LO
I will.
JEN
(smiling painfully)
If you don't, I'll come after you. And
I won't let you off so easy.
EXT. TENT - DAY
Jen quietly walks out and stands sadly in the early morning light.
END OF FLASHBACK.
INT. JEN'S ROOM - NIGHT
LO
Wherever I went, someone always
recognized me. I really tried. Later,
I heard you came to Peking. I was
afraid I'd never see you again. So I
came. I can't let you marry.
Jen is about to respond when a servant's voice is heard from outside the door.
JEN
(whispering)
Go.
LO
Jen...
JEN
(through her tears)
Don't ever come back.
Lo hovers at the window frame.
LO
So it's over?
Jen pauses.
JEN
Yes.
Lo thrusts a small object in her hand.
He lifts his legs through the window and drops out of sight, just as Jen's door is opened from the hall.
MAID
We heard noises.
JEN
It was just a cat.
The Maid pauses, then dutifully exits, closing the door.
Jen opens up her palm; gasping, she sees the comb that Lo has given her.
EXT. WEDDING PROCESSION - DAY
The noise and color of a wedding procession. A marching band heralds the occasion, as throngs of onlookers fight to get a glimpse of the groom, GOU JUN PEI, who trots by on a handsome white horse.
INT. WEDDING CARRIAGE - DAY
Jen's head is completely covered in red cloth as she rides silently in the bride's carriage.
EXT. BALCONY OVERLOOKING WEDDING PROCESSION - DAY
Li and Yu watch the festivities from a balcony of the city gate.
YU
You think Jade Fox will show up?
LI
She's out there, but I doubt she'll
show herself. We'll keep our eyes
open. Sooner or later, she'll come
for the girl.
INT. WEDDING CARRIAGE - DAY
A small arrow flies into the carriage. Jen calmly lifts the red cloth from her face and pulls the arrow out of the panelling inside the carriage.
We hear Lo's voice from outside the carriage, but Jen doesn't seem to notice.
LO (v-o)
Jen! Come with me! You're mine!
Lo runs wildly into the crowd.
LO
Come with me to the desert! Jen!
Come with me to Xin Jiang!
The guards surround Lo, but he escapes.
EXT. PEKING STREET - DAY
Lo leaps and lands right in front of Li Mu Bai, his fingers pressed against Lo's neck. Yu comes running around the corner and sees them.
LI
Where is Jade Fox?
Yu jumps in and pushes Li away.
YU
(to Lo)
Come with me! Hurry!
EXT. CITY OUTSKIRTS - DAY
Lo sits dejectedly, having told his story to Yu and Li, who look him over.
YU
(to Lo)
You thought she'd give it all up
and go back West with you?
LO
She's mine.
LI
Either way, you are no good to her
dead. With the Gou and Yu clans
hunting you, you'll soon be in their
hands.
LO
I don't care anymore.
LI
If you truly loved her, you wouldn't
say that.
YU
Don't you want to see her again?
LI
All right. I'll write you an
introduction. Take it to Wudan. Wait
there for news from me.
LO
All right.
EXT. TE COMPOUND - NIGHT
Yu and Li enter as other men and women race through the compound, a sense of panic in the air. Yu gives Li a look. Li shrugs.
INT. TE'S HALL - NIGHT
A crowd, including Li and Yu, stand by as Te opens the empty sword case, his voice rising.
SIR TE
When will this end? They take it,
they put it back, they take it again.
My home is turning into a warehouse.
Bo bursts into the hall, bows to Te.
SIR TE
Speak!
BO
Jen has run away! Gou found the
wedding chamber empty. Governor Yu
requests your assistance. You know
the Giang Hu underworld. He wants
to find her and keep her from harm.
LI
Sir Te, leave this to us. Don't worry.
INT. TEA STALL - DAY
Jen arrives at the tea stall. She places her sword on the table, which catches the attention of a couple of Giang Hu martial arts characters sitting nearby.
WAITRESS
What can I serve you?
As the Waitress turns to leave, Jen grabs her by the arm.
JEN
The cup is dirty.
The flustered Waitress apologizes and takes the cup away. The men approach Jen.
GANGSTER A
Hello. What is your name?
JEN
(without lifting her eyes)
Long.
GANGSTER B
It's young Master Long, my apologies.
I'm Iron Eagle Sung and this is my
brother in arms, Flying Cougar Li Yun.
What brings you to Huai An, and where
are you headed, Master Long?
JEN
Anywhere there's action.
The two men exchange glances.
GANGSTER A
In that case, perhaps we could be of
assistance.
JEN
Don't bother.
GANGSTER A
You don't seem to understand.
JEN
So what if I don't?
GANGSTER B
We have ways of helping you understand.
The two pull out their weapons which are immediately chopped into scraps by Jen.
GANGSTER A
(stunned)
Are you related to Li Mu Bai?
JEN
He is my defeated foe!
EXT. WOODS - DAY
Li and Yu pass a cup back and forth as Bo tends to the horses in the background.
YU
Have some tea.
As Yu passes the cup to Li, their fingers touch. Embarrassed, Li pulls back.
LI
Shu Lien... The things we touch have
no permanence. My master would say...
there is nothing we can hold on to in
this world. Only by letting go can we
truly possess what is real.
YU
Not everything is an illusion. My
hand... wasn't that real?
LI
Your hand, rough and callused from
machete practice... All this time,
I've never had the courage to touch it.
Li takes Yu's hand and presses it to his face.
LI
Giang Hu is a world of tigers and
dragons, full of corruption... I
tried sincerely to give it up but I
have brought us only trouble.
YU
To repress one's feelings only makes
them stronger.
LI
You're right, but I don't know what
to do. I want to be with you... just
like this. It gives me a sense of peace.
Li Mu Bai smiles.
INT. STAR RESTAURANT - DAY
Jen walks upstairs. A WAITER greets her.
WAITER
Please follow me.
JEN
I want a clean room.
WAITER
We have plenty. Your order?
Jen again sets her sword on the table as she sits down.
JEN
Steamed whole cod, bite-sized
meatballs, a little starchy, but
keep the sauce light, shark fin soup,
mixed vegetables, and some warm wine.
WAITER
(dazed)
I have to order from a bigger
restaurant.
JEN
Hurry then.
The Waiter gauges Jen for an instant before bouncing off to place the orders. Jen checks her pouch and sees there's not much money left.
A large group of Giang Hu characters enters. They survey the restaurant and quickly find Jen upstairs.
GIANG HU A
That's him.
MI BIAO
I am Iron Arm Mi. I heard a true
master has arrived. I have come to
seek a lesson.
Jen ignores him.
MI BIAO
(bristles)
You asked for it!
Mi charges and attacks Jen, who is still sitting sipping tea. Jen barely lifts a finger and disposes of Mi with a poke at a sensitive pressure point. This provokes a reaction from the other men.
JEN
What kind of Iron Arm are you?
FLYING MACHETE CHANG
You have amazing technique! I am
Flying Machete. Are you related to
Southern Crane?
JEN
Southern Duck? I don't eat anything
with two feet. Who could remember
such long-winded names?
GOU JUN SIHUNG
Li Mu Bai is your defeated foe, and
you don't know his master, Southern
Crane?
JEN
Who are you?
GOU JUN SIHUNG
I'm Shining Phoenix Mountain Gou.
JEN
(furious)
Gou? I hate that name. It makes me
puke! Too bad you're named Gou. You'll
be the first to feel my sword today.
Jen leaps up and dives into battle. The men all use different kinds of weapons, but they all succumb to the powerful Green Destiny.
MONK JING
Hold it! Don't you know Monk Jing?
JEN
A monk, in a place like this? You
need a lesson!
MONK JING
Who are you?
She smiles, and leaps again into action after unsheathing the Green Destiny.
JEN
Who am I? I am... I am the Invincible
Sword Goddess. Armed with the
incredible... Green Destiny. Be you Li
or Southern Crane... lower your head...
and ask for mercy. I am the desert
dragon. I leave no trace. Today I fly
over Eu-Mei. Tomorrow... I'll kick
over Wudan Mountain!
Jen is in a frenzy, slashing and maiming as she speaks.
INT. STAR RESTAURANT - DAY
Yu and Li are surrounded by the variously bandaged men who battled with Jen.
FLYING MACHETE CHANG
We politely asked for a friendly
match, but she showed no respect, and
attacked us. Everyone came by to teach
her a lesson.
MI BIAO
Her sword was just too powerful.
MONK JING
I've traveled everywhere, but never
met anyone so uncivilized.
SHINING PHOENIX MOUNTAIN GOU
(heavily bandaged)
She kept accusing me of being Gou Jun
Pei's brother. Who is this Gou, anyway?
YU
Her husband.
The men all nod their heads.
EXT. OUTSIDE HWAI AN - DAY
Li and Yu ride together.
LI
(to Yu)
We're close to your headquarters. Go
home and check in.
YU
What about you?
LI
I'll look around and catch up later.
YU
Not a bad idea. Tonight we'll get a
good night's sleep at headquarters.
Yu takes a fork off the road. Thunder can be heard in the darkening sky.
EXT. SUN COMPOUND - DAY
A group of security men are practicing Kung Fu in the front yard of Sun Security. They stop when Yu enters.
SECURITY MAN A
Mistress, you're back.
YU
It's you! How's everything here?
CAPTAIN
Fine. You've been gone a while.
YU
Yes, and I leave again tomorrow. Your
wife was due?
AH WAI
Yeah, a baby girl.
YU
Good!
AH WAI
I'll be happy if she's half as strong
as you.
YU
Mrs. Wu...
AUNT WU
You're back!
YU
How's the arm? Still sore?
AUNT WU
Much better. You've been gone so long.
YU
Li Mu Bai is coming to stay the night.
AUNT WU
(excited)
I'll go and make up his room!
Aunt Wu hustles out. Yu goes into her own room.
INT. HALL OF ANCESTRAL WORSHIP
Yu lights incense for her former fiance Meng. Hearing something, she turns to see a dishevelled Jen standing outside downstairs.
JEN
Sister Shu Lien...
INT. YU'S ROOM - DAY
Yu eases her guard, then opens a drawer and takes out some clothes. Jen, wearing just white underclothing, sets herself on the edge of Yu's bed. Yu brings over the clothes.
YU
Here you must be in proper attire.
JEN
I'm just borrowing some clean clothes.
I'm not staying.
YU
I'll give them to you.
JEN
I was just passing by and wondered
how you were.
Jen tries to hide her anxiety but finally breaks down on Yu's shoulder in tears.
JEN
You, sister...
YU
Look at the trouble you've caused.
Now you know what Giang Hu life is
really like. If you think of me as
your sister, let me give you some
sisterly advice. You can run from
marriage, but not your parents.
JEN
They forced me to marry!
YU
Go back to them first. Then you can
decide about Lo.
JEN
You know about Lo?
YU
He really loves you. Come back to
Peking with me. We'll find a solution.
JEN
Where is he now?
YU
Li Mu Bai has made arrangements. He
sent him to Wudan Mountain.
JEN
You're working together to set me up!
I'm leaving!
YU
How dare you accuse us? I always knew
you had stolen the sword! I've done
nothing but protect you and your family.
And you've repaid me with nothing but
contempt. Li Mu Bai himself spared you,
and all you do is insult him. We wanted
some peace and you've ruined it all!
You're no sister of mine!
JEN
What do I care? You were never a real
friend anyway. But I wonder, how long
could you last as my enemy?
Jen gets up to leave. Yu intercepts her.
YU
Put the sword down!
Jen jumps out.
INT. YUAN COMPOUND - DAY
Jen soars out to the front courtyard where the guards are still practicing. They raise their weapons at the sight of the intruder.
YU
(calling out)
Jen!
Jen greets Yu with the Green Destiny.
YU
Everyone out. Shut the doors.
The men leave.
YU
Fine... the friendship is over.
Yu scoops a weapon from one of many lying around and begins her battle with Jen.
Yu uses every weapon that's available against Jen but none are any match for the Green Destiny.
After slicing through another set of Yu's weapons, Jen looks admiringly at the Green Destiny in her hands.
YU
Don't touch it! That's Li Mu Bai's
sword.
JEN
Come and get it if you can.
YU
Without the Green Destiny, you are
nothing.
JEN
Don't be a sore loser. Go ahead. Take
your pick. I'll wait. Go ahead.
Yu picks up a huge broadsword and attacks. Just as the Green Destiny slices it in half, Yu holds the broken blade at Jen's neck. She pauses before hurting Jen, then pulls back.
YU
Give me the sword.
Jen, taking advantage of Yu's trust, slices her arm.
JEN
Take it!
Yu, her shoulder bleeding, falls back as Li Mu Bai jumps in.
LI
(enraged)
Stop it! You don't deserve the Green
Destiny.
JEN
Not another lecture! On guard!
LI
Let's end this here.
JEN
Only the sword will settle this.
Jen soars up to the rooftop, with Li right on her tail.
EXT. LAKE - DAY
Jen floats over the lake, Li close behind.
EXT. BAMBOO FOREST - DAY
Jen runs into a sea of bamboo. She appears to have lost Li but is not slowing down. Her white clothes are now stained with blood and mud. The wind has picked up and every breeze sounds like an air attack by Li.
The two leap onto the tips of the bamboo trees and begin their dances and dodges. They glance off bamboos and each other while staying afloat. Finally Jen lands on the same stick of bamboo as Li. The two hold their positions for a while as the bamboo bends.
LI
I only let you go because I wanted
to see the real you.
Jen tries to shake Li off the bamboo but Li recovers nicely.
JEN
What do you know about a true heart?
Li suddenly leaps off the bamboo tree. The bamboo straightens up and throws Jen toward the ground. Jen quickly pulls herself up and charges at Li.
Jen chases after Li, into a clearing, out of the bamboo forest.
EXT. RIVER - DAY
Jen finally catches up to Li, who is standing on a rock about a few feet wide amid the rapids. Jen vaults onto the rock and scuffles with Li. Jen loses her balance.
JEN
What do you want?
LI
What I've always wanted, to teach you.
JEN
All right. If you can take the sword
back in three moves, I'll go with you.
Li takes the sword back.
JEN
Give it back!
LI
Kneel!
JEN
Never!
LI
Then you have no use for the sword.
Li throws the sword into the rapids.
Jen dives in to retrieve it. Li follows Jen downstream by hopping from one rock to another. Jen recovers the sword but is herself drowning. Suddenly Jade Fox swings into the rapids and fishes Jen out. Jade Fox carries the unconscious Jen away. Li gives chase, but loses them.
INT. ABANDONED FACTORY - DAY
It's raining. Inside an old factory, Fox heats some medicine paste and then dips a needle in the paste. She burns the needle point, causing a blue smoke. She lights some incense and puts it in a burner near Jen, who is barely conscious.
FOX
Sooner or later, they'd drag you back
to Peking. Your parents will never
accept you again. But why go home?
We've gone this far, we won't stop now.
You'll always be my lady. At last,
we'll be our own masters. We'll be
happy. That's the most important thing.
All we have left is each other, right?
Lie down and rest.
Jen is too weak to respond.
Fox leaves Jen clutching the Green Destiny.
EXT. ABANDONED FACTORY - DAY
Fox scurries ahead in the rain. Her eyes catch something, but she keeps moving.
INT. YUAN COMPOUND - DAY
Aunt Wu finishes bandaging Yu.
AUNT WU
She's crazy. You should have killed her.
YU
I didn't have the heart.
AUNT WU
Well, Li Mu Bai can do it.
Yu senses movement at the window. Looking out, she sees Jade Fox in the distance.
INT. ABANDONED FACTORY - DAY
Jen wakes up, flushed from fever. She takes a sip from a cup of water- it's empty. She tosses the cup, gets up, and walks into the rain.
EXT. ABANDONED FACTORY - DAY
Jen walks out, raises her face into the rain, and drinks the raindrops. Thirst quenched, she turns around and finds Li standing there. Jen limps toward him while mumbling.
JEN
Is it me or the sword you want?
Jen falls into Li, who checks her pulse and looks at her eyes.
LI
You've been drugged!
Li carries her inside, kicking away the incense burner.
INT. ABANDONED FACTORY - DAY
Li lays his hands on Jen's back; she slowly comes to.
LI
Where is Jade Fox?
Jen gestures that she doesn't know. Yu and Bo enter. Yu looks at Jen.
YU
What happened?
LI
Jade Fox drugged her. How did you
get here?
YU
We followed Jade Fox.
Instantaneously, a flurry of darts flies directly in Jen's direction. Li and Yu swipe miraculously at them all, sending them flinging hither and thither.
Fox shows herself. Li attacks her. She falls back, bleeding to death.
LI
And so you die.
Li touches his neck.
FOX
And so shall you!
Li pulls a single needle from his neck.
YU
A poisoned needle!
FOX
You deserve to die, but the life I
was hoping to take... was Jen's. Ten
years I devoted to you. But you
deceived me! You hid the manual's true
meaning. I never improved... but your
progress was limitless! You know what
poison is? An eight-year-old girl, full
of deceit. That's poison! Jen! My only
family... my only enemy...
Jade Fox dies.
YU
You can't die! Tell us what poison
you used! You can't die! Tell us the
antidote! You can't let Li Mu Bai die!
JEN
She used Purple Yin... Purple Yin
poison. It goes straight to the heart.
LI
My blood will soon reverse its flow.
It's the same poison she used to kill
my master. There is no antidote.
YU
That can't be! Everything has an
antethesis! Why not this?
JEN
The antidote exists. She taught it to
me. The formula is simple, but it takes
time to prepare. Trust me. As you have
helped me, let me help him.
LI
All right. Hurry. I will hold on as
long as I can.
YU
(takes the comb from her hair)
Take my horse and go to the compound.
Give this to Mrs. Wu. She'll help you.
Hurry!
JEN
Spare your energy. I'll be back!
EXT. ABANDONED FACTORY - NIGHT
Bo is burying Fox in the rain.
EXT. YUAN COMPOUND - NIGHT
The guards surround Jen. She pushes past them.
JEN
Where is Mrs. Wu?
Aunt Wu comes running out.
AUNT WU
Stop it!
Jen pulls out Yu's comb.
JEN
Shu Lien told me to show you this.
AUNT WU
Let her in.
INT. ABANDONED FACTORY - NIGHT
Yu sits across from Li, whose pose is almost meditational, eerily calm.
YU
Mu Bai, hold on. Give me some hope...
LI
Shu Lien...
YU
Save your strength.
LI
My life is departing. I've only one
breath left.
YU
Use it to meditate. Free yourself from
this world as you have been taught. Let
your soul rise to eternity with your
last breath. Do not waste it... for me.
LI
I've already wasted my whole life. I
want to tell you with my last breath...
I have always loved you. I would rather
be a ghost, drifting by your side... as
a condemned soul... than enter Heaven
without you. Because of your love... I
will never be a lonely spirit.
Yu cries.
She kisses him lightly. He closes his eyes.
EXT. PATH - DAY
As the sun rises, Jen rides speedily, clutching the medicine in her hands.
INT. ABANDONED FACTORY - DAY
Li is in Yu's arms. They're holding hands. The sun shines in. Yu slowly releases Li's stiff fingers- he is dead.
Jen is at the door.
JEN
He's gone?
Bo peeks over Jen's shoulder.
Yu rises and picks up Green Destiny. Jen kneels. Yu raises the sword, but doesn't kill her.
YU
Bo... please take this sword back to
Sir Te.
He takes the sword from her.
YU
(to Jen)
Now you must go to Wudan Mountain. Lo
awaits you there. Promise me one thing,
whatever path you take in this life...
be true to yourself.
EXT. WUDAN TEMPLE - DAY
Jen climbs up toward the temple, finally reaching the temple gate, and sees Lo standing there.
He runs to her. She greets him.
INT. WUDAN TEMPLE - MAGIC
Jen and Lo make love.
INT. WUDAN TEMPLE - DAY
Lo wakes up to find the jade comb on the pillow beside him, Jen gone.
EXT. WUDAN MOUNTAIN - DAY
Lo catches up to Jen, who stands on a bridge. The gorges below are shrouded in clouds. She looks back at him.
JEN
Do you remember the legend of the
young man?
LO
"A faithful heart makes wishes come
true."
JEN
Make a wish, Lo.
Lo pauses.
LO
(closing his eyes)
To be back in the desert, together
again.
Jen smiles, turns, and leaps into the clouds. They seem to catch her gently before she disappears into them.
Lo remains standing, a smile on his face, tears rolling down his cheeks.
THE END
Showing posts with label others. Show all posts
Showing posts with label others. Show all posts
Friday, 6 July 2007
talk with Ocean
1: 注意住房位置,多带锁, 小心本人外出时别人入室抢劫。
2:可以组织同学开设电脑上门维修, 赚得外快
3:运气之上,特别是application form。
4:获取相关证明,文具厂商和外贸公司的相关授权
2:可以组织同学开设电脑上门维修, 赚得外快
3:运气之上,特别是application form。
4:获取相关证明,文具厂商和外贸公司的相关授权
Wednesday, 20 June 2007
Thursday, 14 June 2007
入党志愿书
http://www.gongwen123.com/Article/dtgz/zys/Index.htm
尊敬的党组织:
我自愿要求加入中国共产党,因为共产党是中国工人阶级的先锋队,是中国各族人民利益的忠实代表,是中国社会主义事业的领导核心。
中国共产党以马克思列宁主义、毛泽东思想作为自己的行动指南。马克思列宁主义揭示了人类社会发展的普遍规律,分析了资本主义制度本身无法克服的固有矛盾,指出社会主义必将代替资本主义,共产主义必将在全人类实现。
《共产党宣言》发表一百多年的历史,充分证明了社会主义的强大生命力。毛泽东思想是马克思列宁主义普遍真理与中国革命具体实践相结合的产物,是中国共产党集体智慧的结晶,是被实践证明了的关于中国革命和建设的正确的理论原则和经验的总结。中国共产党领导全国各族人民,经过长期的反帝、反封建、反官僚资本主义的革命斗争,取得了新民主主义革命的胜利,建立了中华人民共和国,确立了社会主义制度,发展了社会主义的经济、政治和文化,尤其是十一届三中全会以后,中国共产党总结正反两方面的经验教训,解放思想、实事求是,把工作重心转向经济建设,实行改革开放,创立了建设有中国特色的社会主义的理论、路线、方针和政策,开创了社会主义建设的新时期。
实践证明,中国共产党是伟大、光明、正确的党,它善于在实践中不断的总结经验,完善自己,保持正确的航向;它一切从实际出发,理论联系实际、实事求是;它全心全意为人民服务,把群众利益放在第一位,同广大人民同甘共苦;它坚持民主集中制,充分发挥各级党组织和广大党员的积极性和创造性;它实行民主的科学决策,制定和执行正确的路线、方针和政策;它坚持四项基本原则,从严治党、发扬党的优良传统和作风,提高党的战斗力;它维护和发展国内各民族的平等、团结、互助关系,坚持实行和不断完善民族区域自治制度,帮助少数民族地区发展经济、文化,实现各民族的共同繁荣和全面进步;它积极团结各民主党派、无党派人士、各种爱国力量,加强同港、澳、台同胞的联系,按照"一国两制"的方针,完成祖国统一大业;它积极发展对外关系,在国际事务中,坚持独立自主的和平外交政策,反对霸权主义和强权政治。
我生在新中国,长在红旗下,党的教育伴随我走过了XX年的人生历程。还在孩提时,电影里、课本上革命先烈的英勇行为,便使我感受到了党的神圣和伟大。那鲜艳的党旗如熊熊燃烧的烈火,温暖着我的心窝。我常常梦想着自己有一天也能站在党旗下,向党宣誓,成为一名优秀的中国共产党党员。在那时,我已深深地懂得正是那金色的镰刀和锄头砸碎了禁锢在劳动人民身上的铁链,打破黑暗旧社会的枷锁,推翻了几千年来压在中华民族头上的三座大山,是中国共产党,给处在水深火热中的炎黄子孙带来了新生活。正是带着这种对党的崇高敬意,在童年时代我便积极向上,8岁加入少先队,17岁加入共青团,在以后团的生活中严格要求自己,认真做一个合格的共青团员,工作勤奋积极,争当先进。
本人加入党的愿望由来已久。这种愿望不是一时冲动,而是发自内心深处的一种执著与崇高的信念,这种信念给了我克服一切障碍、追随中国共产党建设社会主义中国的勇气、信心和力量。
敬爱的党组织,今天我郑重地递上申请书,是我人生历程中最庄严神圣的一件事,是我在入党前对人生的一次宣誓。若党组织在严格审查后能予以批准,我将认真履行党章上所要求的一切,严格要求自己,接受党组织和同志们的监督,严于律己、勤奋进取,努力作一名合格而且先进的共产党员,为党的事业、为我国的社会主义向现代化事业贡献我毕生的精力和热血。
即使组织上认为我尚未符合一个党员的资格,我也将按党章的标准,严格要求自己,总结经验,寻找差距,继续努力,争取早日加入党组织。
敬爱的党组织,请接受我的申请吧!
此致
敬礼
申请人:某某某
2001年07月01日
尊敬的党组织:
我自愿要求加入中国共产党,因为共产党是中国工人阶级的先锋队,是中国各族人民利益的忠实代表,是中国社会主义事业的领导核心。
中国共产党以马克思列宁主义、毛泽东思想作为自己的行动指南。马克思列宁主义揭示了人类社会发展的普遍规律,分析了资本主义制度本身无法克服的固有矛盾,指出社会主义必将代替资本主义,共产主义必将在全人类实现。
《共产党宣言》发表一百多年的历史,充分证明了社会主义的强大生命力。毛泽东思想是马克思列宁主义普遍真理与中国革命具体实践相结合的产物,是中国共产党集体智慧的结晶,是被实践证明了的关于中国革命和建设的正确的理论原则和经验的总结。中国共产党领导全国各族人民,经过长期的反帝、反封建、反官僚资本主义的革命斗争,取得了新民主主义革命的胜利,建立了中华人民共和国,确立了社会主义制度,发展了社会主义的经济、政治和文化,尤其是十一届三中全会以后,中国共产党总结正反两方面的经验教训,解放思想、实事求是,把工作重心转向经济建设,实行改革开放,创立了建设有中国特色的社会主义的理论、路线、方针和政策,开创了社会主义建设的新时期。
实践证明,中国共产党是伟大、光明、正确的党,它善于在实践中不断的总结经验,完善自己,保持正确的航向;它一切从实际出发,理论联系实际、实事求是;它全心全意为人民服务,把群众利益放在第一位,同广大人民同甘共苦;它坚持民主集中制,充分发挥各级党组织和广大党员的积极性和创造性;它实行民主的科学决策,制定和执行正确的路线、方针和政策;它坚持四项基本原则,从严治党、发扬党的优良传统和作风,提高党的战斗力;它维护和发展国内各民族的平等、团结、互助关系,坚持实行和不断完善民族区域自治制度,帮助少数民族地区发展经济、文化,实现各民族的共同繁荣和全面进步;它积极团结各民主党派、无党派人士、各种爱国力量,加强同港、澳、台同胞的联系,按照"一国两制"的方针,完成祖国统一大业;它积极发展对外关系,在国际事务中,坚持独立自主的和平外交政策,反对霸权主义和强权政治。
我生在新中国,长在红旗下,党的教育伴随我走过了XX年的人生历程。还在孩提时,电影里、课本上革命先烈的英勇行为,便使我感受到了党的神圣和伟大。那鲜艳的党旗如熊熊燃烧的烈火,温暖着我的心窝。我常常梦想着自己有一天也能站在党旗下,向党宣誓,成为一名优秀的中国共产党党员。在那时,我已深深地懂得正是那金色的镰刀和锄头砸碎了禁锢在劳动人民身上的铁链,打破黑暗旧社会的枷锁,推翻了几千年来压在中华民族头上的三座大山,是中国共产党,给处在水深火热中的炎黄子孙带来了新生活。正是带着这种对党的崇高敬意,在童年时代我便积极向上,8岁加入少先队,17岁加入共青团,在以后团的生活中严格要求自己,认真做一个合格的共青团员,工作勤奋积极,争当先进。
本人加入党的愿望由来已久。这种愿望不是一时冲动,而是发自内心深处的一种执著与崇高的信念,这种信念给了我克服一切障碍、追随中国共产党建设社会主义中国的勇气、信心和力量。
敬爱的党组织,今天我郑重地递上申请书,是我人生历程中最庄严神圣的一件事,是我在入党前对人生的一次宣誓。若党组织在严格审查后能予以批准,我将认真履行党章上所要求的一切,严格要求自己,接受党组织和同志们的监督,严于律己、勤奋进取,努力作一名合格而且先进的共产党员,为党的事业、为我国的社会主义向现代化事业贡献我毕生的精力和热血。
即使组织上认为我尚未符合一个党员的资格,我也将按党章的标准,严格要求自己,总结经验,寻找差距,继续努力,争取早日加入党组织。
敬爱的党组织,请接受我的申请吧!
此致
敬礼
申请人:某某某
2001年07月01日
入党志愿书
http://www.gongwen123.com/Article/dtgz/zys/Index.htm
尊敬的党组织:
我自愿要求加入中国共产党,因为共产党是中国工人阶级的先锋队,是中国各族人民利益的忠实代表,是中国社会主义事业的领导核心。
中国共产党以马克思列宁主义、毛泽东思想作为自己的行动指南。马克思列宁主义揭示了人类社会发展的普遍规律,分析了资本主义制度本身无法克服的固有矛盾,指出社会主义必将代替资本主义,共产主义必将在全人类实现。
《共产党宣言》发表一百多年的历史,充分证明了社会主义的强大生命力。毛泽东思想是马克思列宁主义普遍真理与中国革命具体实践相结合的产物,是中国共产党集体智慧的结晶,是被实践证明了的关于中国革命和建设的正确的理论原则和经验的总结。中国共产党领导全国各族人民,经过长期的反帝、反封建、反官僚资本主义的革命斗争,取得了新民主主义革命的胜利,建立了中华人民共和国,确立了社会主义制度,发展了社会主义的经济、政治和文化,尤其是十一届三中全会以后,中国共产党总结正反两方面的经验教训,解放思想、实事求是,把工作重心转向经济建设,实行改革开放,创立了建设有中国特色的社会主义的理论、路线、方针和政策,开创了社会主义建设的新时期。
实践证明,中国共产党是伟大、光明、正确的党,它善于在实践中不断的总结经验,完善自己,保持正确的航向;它一切从实际出发,理论联系实际、实事求是;它全心全意为人民服务,把群众利益放在第一位,同广大人民同甘共苦;它坚持民主集中制,充分发挥各级党组织和广大党员的积极性和创造性;它实行民主的科学决策,制定和执行正确的路线、方针和政策;它坚持四项基本原则,从严治党、发扬党的优良传统和作风,提高党的战斗力;它维护和发展国内各民族的平等、团结、互助关系,坚持实行和不断完善民族区域自治制度,帮助少数民族地区发展经济、文化,实现各民族的共同繁荣和全面进步;它积极团结各民主党派、无党派人士、各种爱国力量,加强同港、澳、台同胞的联系,按照"一国两制"的方针,完成祖国统一大业;它积极发展对外关系,在国际事务中,坚持独立自主的和平外交政策,反对霸权主义和强权政治。
我生在新中国,长在红旗下,党的教育伴随我走过了XX年的人生历程。还在孩提时,电影里、课本上革命先烈的英勇行为,便使我感受到了党的神圣和伟大。那鲜艳的党旗如熊熊燃烧的烈火,温暖着我的心窝。我常常梦想着自己有一天也能站在党旗下,向党宣誓,成为一名优秀的中国共产党党员。在那时,我已深深地懂得正是那金色的镰刀和锄头砸碎了禁锢在劳动人民身上的铁链,打破黑暗旧社会的枷锁,推翻了几千年来压在中华民族头上的三座大山,是中国共产党,给处在水深火热中的炎黄子孙带来了新生活。正是带着这种对党的崇高敬意,在童年时代我便积极向上,8岁加入少先队,17岁加入共青团,在以后团的生活中严格要求自己,认真做一个合格的共青团员,工作勤奋积极,争当先进。
本人加入党的愿望由来已久。这种愿望不是一时冲动,而是发自内心深处的一种执著与崇高的信念,这种信念给了我克服一切障碍、追随中国共产党建设社会主义中国的勇气、信心和力量。
敬爱的党组织,今天我郑重地递上申请书,是我人生历程中最庄严神圣的一件事,是我在入党前对人生的一次宣誓。若党组织在严格审查后能予以批准,我将认真履行党章上所要求的一切,严格要求自己,接受党组织和同志们的监督,严于律己、勤奋进取,努力作一名合格而且先进的共产党员,为党的事业、为我国的社会主义向现代化事业贡献我毕生的精力和热血。
即使组织上认为我尚未符合一个党员的资格,我也将按党章的标准,严格要求自己,总结经验,寻找差距,继续努力,争取早日加入党组织。
敬爱的党组织,请接受我的申请吧!
此致
敬礼
申请人:某某某
2001年07月01日
尊敬的党组织:
我自愿要求加入中国共产党,因为共产党是中国工人阶级的先锋队,是中国各族人民利益的忠实代表,是中国社会主义事业的领导核心。
中国共产党以马克思列宁主义、毛泽东思想作为自己的行动指南。马克思列宁主义揭示了人类社会发展的普遍规律,分析了资本主义制度本身无法克服的固有矛盾,指出社会主义必将代替资本主义,共产主义必将在全人类实现。
《共产党宣言》发表一百多年的历史,充分证明了社会主义的强大生命力。毛泽东思想是马克思列宁主义普遍真理与中国革命具体实践相结合的产物,是中国共产党集体智慧的结晶,是被实践证明了的关于中国革命和建设的正确的理论原则和经验的总结。中国共产党领导全国各族人民,经过长期的反帝、反封建、反官僚资本主义的革命斗争,取得了新民主主义革命的胜利,建立了中华人民共和国,确立了社会主义制度,发展了社会主义的经济、政治和文化,尤其是十一届三中全会以后,中国共产党总结正反两方面的经验教训,解放思想、实事求是,把工作重心转向经济建设,实行改革开放,创立了建设有中国特色的社会主义的理论、路线、方针和政策,开创了社会主义建设的新时期。
实践证明,中国共产党是伟大、光明、正确的党,它善于在实践中不断的总结经验,完善自己,保持正确的航向;它一切从实际出发,理论联系实际、实事求是;它全心全意为人民服务,把群众利益放在第一位,同广大人民同甘共苦;它坚持民主集中制,充分发挥各级党组织和广大党员的积极性和创造性;它实行民主的科学决策,制定和执行正确的路线、方针和政策;它坚持四项基本原则,从严治党、发扬党的优良传统和作风,提高党的战斗力;它维护和发展国内各民族的平等、团结、互助关系,坚持实行和不断完善民族区域自治制度,帮助少数民族地区发展经济、文化,实现各民族的共同繁荣和全面进步;它积极团结各民主党派、无党派人士、各种爱国力量,加强同港、澳、台同胞的联系,按照"一国两制"的方针,完成祖国统一大业;它积极发展对外关系,在国际事务中,坚持独立自主的和平外交政策,反对霸权主义和强权政治。
我生在新中国,长在红旗下,党的教育伴随我走过了XX年的人生历程。还在孩提时,电影里、课本上革命先烈的英勇行为,便使我感受到了党的神圣和伟大。那鲜艳的党旗如熊熊燃烧的烈火,温暖着我的心窝。我常常梦想着自己有一天也能站在党旗下,向党宣誓,成为一名优秀的中国共产党党员。在那时,我已深深地懂得正是那金色的镰刀和锄头砸碎了禁锢在劳动人民身上的铁链,打破黑暗旧社会的枷锁,推翻了几千年来压在中华民族头上的三座大山,是中国共产党,给处在水深火热中的炎黄子孙带来了新生活。正是带着这种对党的崇高敬意,在童年时代我便积极向上,8岁加入少先队,17岁加入共青团,在以后团的生活中严格要求自己,认真做一个合格的共青团员,工作勤奋积极,争当先进。
本人加入党的愿望由来已久。这种愿望不是一时冲动,而是发自内心深处的一种执著与崇高的信念,这种信念给了我克服一切障碍、追随中国共产党建设社会主义中国的勇气、信心和力量。
敬爱的党组织,今天我郑重地递上申请书,是我人生历程中最庄严神圣的一件事,是我在入党前对人生的一次宣誓。若党组织在严格审查后能予以批准,我将认真履行党章上所要求的一切,严格要求自己,接受党组织和同志们的监督,严于律己、勤奋进取,努力作一名合格而且先进的共产党员,为党的事业、为我国的社会主义向现代化事业贡献我毕生的精力和热血。
即使组织上认为我尚未符合一个党员的资格,我也将按党章的标准,严格要求自己,总结经验,寻找差距,继续努力,争取早日加入党组织。
敬爱的党组织,请接受我的申请吧!
此致
敬礼
申请人:某某某
2001年07月01日
Wednesday, 13 June 2007
含羞草
含羞草资料
【别 名】感应草、喝呼草、知羞草、怕丑草
【学 名】Mimosa pudica Linn.
【英文名】Bashfulgrass,Sensitiveplant
【科 属】豆科 、含羞草属Leguminosae
【花 语】害羞(Shyness)
轻轻触碰这种植物的叶片会立刻紧闭下垂,即使一阵风吹过也会出现这种情形,就像一个害羞的少女般。因此它的花语是-害羞。受到这种花祝福而生的人个性非常害羞胆小,而且很怕生。感受特别的敏锐,自尊心也强。不过如果和了解自己的人在一起,就会轻松自在得多,交朋友重质不重量,喜欢细水长流的感情。
【简 介】
多年生草本(在苏南栽培后成一年生),高约40厘米,分枝多,遍体散生倒刺毛和锐刺。叶为2回羽状复叶,羽片2—4个,掌状排列,小叶14—48,长圆形,长0.6—1.1厘米,宽1.5—2毫米,边缘及叶脉有刺毛。头状花序长圆形,2—3个生于叶腋;花淡红色;花萼钟状,有8个微小萼齿;花瓣4;雄蕊4;子房无毛。荚果扁平,长1.2—2厘米,宽约0.4厘米,边缘有刺毛,有3—4荚节,每荚节有1颗种子,成熟时节间脱落。花期9月。 原产南美,现我国各地均有栽培,为观赏植物,生于山坡丛林中及路旁的潮湿地;分布于华东、华南、西南等省区。全草药用,能安神镇静、止血收敛、散瘀止痛;种子能榨油。含羞草体内的含羞草碱是一种有毒物质,人体过度接触后会使毛发脱落。
【含羞草名字的来源】
植物与动物不同,没有神经系统,没有肌肉,它不会感知外界的剌激,而含羞草与一般植物不同,它在受到外界触动时,叶柄下垂,小叶片合闭,此动作被人们理解为“害羞”,故称为含羞草。
【含羞草的传说】
从前有一个很俊俏的小伙子,经常外出钓鱼。一天,他看见一位老汉坐在河边,嘴驻自言自语:”钓!钓!钓!小鱼莫来大鱼到。”说着大鱼真向老汉游来。小伙子对老汉说:“我向你学习钓鱼,好吗?”老汉说:“钓鱼没有什么好学的,看你似很诚实,我告诉你一个秘密,你只要一直沿着这条河岸向前走,会遇到好事的。”老汉说完,人不见了。
小伙子很高兴,心想,我一定是遇到仙人了,就沿岸一直走去。天黑了,仍然往前走,前面出现一片长满荷花的大湾。水边一户人家门开着,点着灯,一位少女坐着织绸。小伙子走前问道:“请问这是什么地方,我走迷了路。”织绸女说:“这是荷花庄,我是荷花女,你走累了,可进来坐下歇歇。”小伙子坐了一会儿,要走了,荷花女没有留他,送他出了门口。 小伙子回到家,心想痴了,认为这荷花女,定是仙女。钓鱼老汉说,向前走会遇到好事,可能是这仙女要下凡,找要和她结婚。 第二天大早,小伙子又沿河岸走,天黑到了荷花庄,荷花女仍在,态度比昨天亲呢多了。她叫小伙子脱下破小褂,给他缝补。 小伙子说:“我是孤身一人呀!”荷花女像未听见。将衣补好,送小伙子出门。小伙子回到家已是半夜,坐不住,立不稳,返身又向河边跑,再到荷花湾,见湾中一朵大荷花,便呼唤荷花女,果然荷花女踏波而来。她说:“我父不许我和凡人往来,从今以后,我们便不得见面了。小伙子哭了,哭得很伤心。荷花女安慰说:“只要你真心实意,我就和你一块逃走。”小伙子对天发誓,永不变心。荷花女带小伙子驾云来到天边深林里,一座小桥直通小屋门口前,他俩过桥进屋,屋内一切陈设齐备,还放着一架织布机。 他们在那里成了亲。小伙子天天外出打猎,不用费多少力,就可猎到一些山兔、山鸡,空闲时间,就游山逛水。荷花女却很辛苦,每天除织绸,还到各山头栽桑。
一年又一年过去了,荷花女的头发,不那么光亮了,红润的脸也不那么可人了,小伙子对他说:“你太劳累了,人变老了,你歇歇吧!”荷花女摇摇头说:“你看,如果那许多荒山都成了桑林,该多美呀!”荷花女从头上拔下一根针交给小伙子说:“这针是宝贝,可制伏猛兽,你要用这宝针,把这一带被害兽占领的无人山区,变成百姓的乐园。注意,这宝针千干万万不能落到别人手里。” 一天,小伙子到远处的野山打猎,发现一个黑漆漆的洞口,觉得很奇怪,进洞一看,一只老虎扑来,他用荷花女给他的宝针一指,老虎逃跑了。前面是一座大门,推门一看,明灯高照,一位妙龄少女坐在炕上,她比荷花女漂亮多了,少女迎他同坐炕上,伴同吃菜喝酒,两人便成了亲。3天后,少女说找要出去走亲戚,但怕虎狼伤害。小伙子说:“我有宝针。可战胜一切猛兽。”说着便把宝针交给少女。谁知少女一走出洞,洞口便紧紧闭上,小伙子被禁在洞内,他这才想起荷花女说的话,懊悔已迟了。 荷花女见小伙子不回来,掐指一算,心中明白,原来小伙子已成负心人,不禁眼泪直流。又一想,还是去救他一命吧!她另外还有一件宝物,是开山钥匙。荷花女到了洞门口,把开山钥匙一指,洞门大开,把小伙子带出洞,小伙子感到羞愧不安。荷花女含泪说:“做梦也想不到你是这样的负心人!二人正在返回途中,那少女从后面追来,大喊:“小伙子,回来呵!”荷花女对小伙子说:“你干万不能回头看她,只要一回头,你就没命了。”少女还在后面喊:“小伙子,你好好想想,你到哪里再去找到像我这佯可爱的美人儿?小伙子一动心,回头望了一眼。少女趁他思想动摇的一刹那,把手帕一摆动,便把小伙子化成生长在地上的柔弱小草。
荷花女凝视着这小草,小草叶片双双相合,像是合掌忏悔,旋即含羞地垂下叶柄,表示认错。荷花女说:“小伙子,你还能知耻,还能认错。”后来大家叫它"含羞草",成为人们喜爱的小草。
【含羞草“含羞”的原因】
日本上智大学土屋隆英教授领导的研究小组,揭开了含羞草闭合运动之谜:含羞草细胞是由细小如网状的蛋白质“股动蛋白(actin)”所支撑。产生闭合运动时,股动蛋白的磷酸会脱落,只要让含羞草吸收不让磷酸脱落的化合物,经触碰也不会起变化。土屋教授指出,当股动蛋白束散开时,细胞被破坏,结果水分跑出来,以致产生闭合运动。股动蛋白一般见于动物的肌肉纤维内,与肌肉伸缩有关。没想到它也存在含羞草内,可说是相当罕见。
【含羞草的主要应用】
1、观赏。含羞草株形散落,羽叶纤细秀丽,其叶片一碰即闭合;含羞草花多而清秀,楚楚动人,给人以文弱清秀的印象。可地栽于庭院墙角,也可盆栽于窗口案几。
2、药用。含羞草也是一种药物。
【来源】豆科含羞草属植物含羞草Mimosa pudica L.的全草。夏秋采,去净杂草,洗净,切段,晒干或鲜用。
【性味归经】甘、涩,凉。有小毒。
【功能主治】清热利尿,化痰止咳,安神止痛、解毒、散瘀、止血、收敛等功效。用于感冒,小儿高热,急性结膜炎,支气管炎,胃炎,肠炎,泌尿系结石,疟疾,神经衰弱;外用治跌打肿痛,疮疡肿毒、咯血、带状疱疹。
【用法用量】 5~8钱;外用适量,捣烂敷患处。
【注 意】孕妇忌服。本品有麻醉作用,内服不宜过量。
【摘 录】《全国中草药汇编》
3、预测地震。据土耳其地震学家艾尔江表示,在强烈地震发生的几小时前,对外界触觉敏感的含羞草叶会突然萎缩,然后枯萎。在地震多发的日本,科学家研究发现,在正常情况下,含羞草的叶子白天张开,夜晚合闭。如果含羞草叶片出现白天合闭,夜晚张开的反常现象,便是发生地震的先兆。如:1938年1月11日上午7时,含羞草开始张开,但是到了10时,叶子突然全部合闭,果然在13日发生了强烈地震。1976年日本地震俱乐部的成员,曾多次观察到含羞草叶子出现反常的合闭现象,结果随后都发生了地震。
含羞草的种植
含羞草的种植技术简单,管理粗放。对气候、阳光、土壤要求不严,但以肥沃、疏松的砂质壤土为佳,喜温暖湿润的环境。
1、种植方法。一般播种繁殖,3月下旬至4月初播种。将种子均匀撒在细土上,覆土1.5厘米左右,在温度18℃左右时,10天左右可出苗(一般入土即长,不需花精力专门管理)。幼苗期生长较慢,7-8厘米时可定植。
2、田间管理。田栽株距25—30厘米,及时松土、锄草、浇水。室内盆栽,夏季每天浇水1次。每月施肥1次,如不想让株形过大,则要减少施肥量,甚至不需施肥。
3、病虫防治:基本无病虫害。如有蛞蝓,可在早晨用新鲜石灰粉防治。
含羞草是多年生的草本植物,但是不像一般草本植物那么柔弱。它的茎从基开始分枝,呈直立或倾斜的形态,高度在 20 至 50 公分左右,全体长着长软的毛和尖锐的刺。叶为掌状复叶,由四个羽片合成。每一羽片上都长着许多小叶片,跟一般的掌状复叶并不相同。在总叶柄的基部有膨大的构造,叫「叶枕」。在叶柄基部附近有托叶。
含羞草的花相当特殊。它开的紫红色或粉红色花球,实际上并不是一朵花,而是许多的小花所形成的花序。假如小心的把球上的每一个小单位分开,就可以看到每一个小单位都有四裂的花瓣、四根长长的雄蕊和一枚雌蕊,原来那一个个的小单位才是它的一朵花。
含羞草的花儿开过以后,大部分的花都会结成荚果,因此我们所看到含羞草果实也是密集成球状的。每一个荚果有三到四节,表面有毛。荚果成熟后,一节一节掉落,只留下节和节之间所形成的空架子,看来十分有趣。
如果你轻轻地触动它一下,它那片开放着的羽状复叶,立即闭合起来,紧接着整个叶子又垂了下去,显出“害羞”的样子,含羞草的名称便由此而来。
为什么我们故意或不小心碰到含羞草,它就会「低头下垂」呢?
含羞草的这种叶片闭合和叶柄下垂的现象,并不是“害羞”,而是植物受刺激和震动后的一种反应。这种反应在生物学上称为感性运动,是含羞草受到外界刺激后,细胞紧张改变的结果。
原来,含羞草的叶子和叶柄具有特殊的结构。在叶柄基部和复叶的小叶基部,都有一个比较膨大的部分,叫做叶枕。叶枕对刺激的反应最为敏感。一旦碰到叶子,刺激立即传到叶柄基部的叶枕,引起两个小叶片闭合起来,触动力大一些,不仅传到小叶的叶枕,而且很快传到叶柄基部的叶枕,整个叶柄就下垂了。为什么会这样呢?这是因为,在叶枕的中心有一个大的维管束,维管束四周充满着具有许多细胞间隙的薄壁组织。当震动传到叶枕时,叶枕的上半部薄壁细胞里的细胞液,被排出到细胞间隙中,使叶枕上半部细胞的膨压降低,而下半部薄壁细胞间隙仍然保持原来的膨压,结果引起小叶片的直立而两个小叶片闭合起来,甚至于整个叶子垂下来。有人做过研究,含羞草在受到刺激后的0.08秒钟内,叶子就会闭合。受刺激后,传导的速度也是很快的,最高速度每秒钟达10厘米。刺激之后,稍过一段时间,一切又慢慢恢复正常,小叶又展开了,叶柄也竖立起来了。恢复的时间一般为5—10分钟。但是,如果我们继续逗弄,接连不断地刺激它的叶子,它就产生“厌烦”之感,不再发生任何反应。这是因为连续的刺激使得叶枕细胞内的细胞液流失了,不能及时得到补充的缘故。
含羞草的这种特殊的本领,是有它的一定历史根源的。它的老家在热带南美洲的巴西,那里常有大风大雨。每当第一滴雨打着叶子时,它立即叶片闭合,叶柄下垂,以躲避狂风暴雨对它的伤害。这是它适应外界环境条件变化的一种适应。另外,含羞草的运动也可以看作是一种自卫方式,动物稍一碰它,它就合拢叶子,动物也就不敢再吃它了。
含羞草不是台湾原产的植物,它的老家远在南美洲。在十七世纪时由荷兰人引进台湾,目前在全省各地的空地、河床、荒废地、操场边等地方,都可以看到;中、南部尤其多
【别 名】感应草、喝呼草、知羞草、怕丑草
【学 名】Mimosa pudica Linn.
【英文名】Bashfulgrass,Sensitiveplant
【科 属】豆科 、含羞草属Leguminosae
【花 语】害羞(Shyness)
轻轻触碰这种植物的叶片会立刻紧闭下垂,即使一阵风吹过也会出现这种情形,就像一个害羞的少女般。因此它的花语是-害羞。受到这种花祝福而生的人个性非常害羞胆小,而且很怕生。感受特别的敏锐,自尊心也强。不过如果和了解自己的人在一起,就会轻松自在得多,交朋友重质不重量,喜欢细水长流的感情。
【简 介】
多年生草本(在苏南栽培后成一年生),高约40厘米,分枝多,遍体散生倒刺毛和锐刺。叶为2回羽状复叶,羽片2—4个,掌状排列,小叶14—48,长圆形,长0.6—1.1厘米,宽1.5—2毫米,边缘及叶脉有刺毛。头状花序长圆形,2—3个生于叶腋;花淡红色;花萼钟状,有8个微小萼齿;花瓣4;雄蕊4;子房无毛。荚果扁平,长1.2—2厘米,宽约0.4厘米,边缘有刺毛,有3—4荚节,每荚节有1颗种子,成熟时节间脱落。花期9月。 原产南美,现我国各地均有栽培,为观赏植物,生于山坡丛林中及路旁的潮湿地;分布于华东、华南、西南等省区。全草药用,能安神镇静、止血收敛、散瘀止痛;种子能榨油。含羞草体内的含羞草碱是一种有毒物质,人体过度接触后会使毛发脱落。
【含羞草名字的来源】
植物与动物不同,没有神经系统,没有肌肉,它不会感知外界的剌激,而含羞草与一般植物不同,它在受到外界触动时,叶柄下垂,小叶片合闭,此动作被人们理解为“害羞”,故称为含羞草。
【含羞草的传说】
从前有一个很俊俏的小伙子,经常外出钓鱼。一天,他看见一位老汉坐在河边,嘴驻自言自语:”钓!钓!钓!小鱼莫来大鱼到。”说着大鱼真向老汉游来。小伙子对老汉说:“我向你学习钓鱼,好吗?”老汉说:“钓鱼没有什么好学的,看你似很诚实,我告诉你一个秘密,你只要一直沿着这条河岸向前走,会遇到好事的。”老汉说完,人不见了。
小伙子很高兴,心想,我一定是遇到仙人了,就沿岸一直走去。天黑了,仍然往前走,前面出现一片长满荷花的大湾。水边一户人家门开着,点着灯,一位少女坐着织绸。小伙子走前问道:“请问这是什么地方,我走迷了路。”织绸女说:“这是荷花庄,我是荷花女,你走累了,可进来坐下歇歇。”小伙子坐了一会儿,要走了,荷花女没有留他,送他出了门口。 小伙子回到家,心想痴了,认为这荷花女,定是仙女。钓鱼老汉说,向前走会遇到好事,可能是这仙女要下凡,找要和她结婚。 第二天大早,小伙子又沿河岸走,天黑到了荷花庄,荷花女仍在,态度比昨天亲呢多了。她叫小伙子脱下破小褂,给他缝补。 小伙子说:“我是孤身一人呀!”荷花女像未听见。将衣补好,送小伙子出门。小伙子回到家已是半夜,坐不住,立不稳,返身又向河边跑,再到荷花湾,见湾中一朵大荷花,便呼唤荷花女,果然荷花女踏波而来。她说:“我父不许我和凡人往来,从今以后,我们便不得见面了。小伙子哭了,哭得很伤心。荷花女安慰说:“只要你真心实意,我就和你一块逃走。”小伙子对天发誓,永不变心。荷花女带小伙子驾云来到天边深林里,一座小桥直通小屋门口前,他俩过桥进屋,屋内一切陈设齐备,还放着一架织布机。 他们在那里成了亲。小伙子天天外出打猎,不用费多少力,就可猎到一些山兔、山鸡,空闲时间,就游山逛水。荷花女却很辛苦,每天除织绸,还到各山头栽桑。
一年又一年过去了,荷花女的头发,不那么光亮了,红润的脸也不那么可人了,小伙子对他说:“你太劳累了,人变老了,你歇歇吧!”荷花女摇摇头说:“你看,如果那许多荒山都成了桑林,该多美呀!”荷花女从头上拔下一根针交给小伙子说:“这针是宝贝,可制伏猛兽,你要用这宝针,把这一带被害兽占领的无人山区,变成百姓的乐园。注意,这宝针千干万万不能落到别人手里。” 一天,小伙子到远处的野山打猎,发现一个黑漆漆的洞口,觉得很奇怪,进洞一看,一只老虎扑来,他用荷花女给他的宝针一指,老虎逃跑了。前面是一座大门,推门一看,明灯高照,一位妙龄少女坐在炕上,她比荷花女漂亮多了,少女迎他同坐炕上,伴同吃菜喝酒,两人便成了亲。3天后,少女说找要出去走亲戚,但怕虎狼伤害。小伙子说:“我有宝针。可战胜一切猛兽。”说着便把宝针交给少女。谁知少女一走出洞,洞口便紧紧闭上,小伙子被禁在洞内,他这才想起荷花女说的话,懊悔已迟了。 荷花女见小伙子不回来,掐指一算,心中明白,原来小伙子已成负心人,不禁眼泪直流。又一想,还是去救他一命吧!她另外还有一件宝物,是开山钥匙。荷花女到了洞门口,把开山钥匙一指,洞门大开,把小伙子带出洞,小伙子感到羞愧不安。荷花女含泪说:“做梦也想不到你是这样的负心人!二人正在返回途中,那少女从后面追来,大喊:“小伙子,回来呵!”荷花女对小伙子说:“你干万不能回头看她,只要一回头,你就没命了。”少女还在后面喊:“小伙子,你好好想想,你到哪里再去找到像我这佯可爱的美人儿?小伙子一动心,回头望了一眼。少女趁他思想动摇的一刹那,把手帕一摆动,便把小伙子化成生长在地上的柔弱小草。
荷花女凝视着这小草,小草叶片双双相合,像是合掌忏悔,旋即含羞地垂下叶柄,表示认错。荷花女说:“小伙子,你还能知耻,还能认错。”后来大家叫它"含羞草",成为人们喜爱的小草。
【含羞草“含羞”的原因】
日本上智大学土屋隆英教授领导的研究小组,揭开了含羞草闭合运动之谜:含羞草细胞是由细小如网状的蛋白质“股动蛋白(actin)”所支撑。产生闭合运动时,股动蛋白的磷酸会脱落,只要让含羞草吸收不让磷酸脱落的化合物,经触碰也不会起变化。土屋教授指出,当股动蛋白束散开时,细胞被破坏,结果水分跑出来,以致产生闭合运动。股动蛋白一般见于动物的肌肉纤维内,与肌肉伸缩有关。没想到它也存在含羞草内,可说是相当罕见。
【含羞草的主要应用】
1、观赏。含羞草株形散落,羽叶纤细秀丽,其叶片一碰即闭合;含羞草花多而清秀,楚楚动人,给人以文弱清秀的印象。可地栽于庭院墙角,也可盆栽于窗口案几。
2、药用。含羞草也是一种药物。
【来源】豆科含羞草属植物含羞草Mimosa pudica L.的全草。夏秋采,去净杂草,洗净,切段,晒干或鲜用。
【性味归经】甘、涩,凉。有小毒。
【功能主治】清热利尿,化痰止咳,安神止痛、解毒、散瘀、止血、收敛等功效。用于感冒,小儿高热,急性结膜炎,支气管炎,胃炎,肠炎,泌尿系结石,疟疾,神经衰弱;外用治跌打肿痛,疮疡肿毒、咯血、带状疱疹。
【用法用量】 5~8钱;外用适量,捣烂敷患处。
【注 意】孕妇忌服。本品有麻醉作用,内服不宜过量。
【摘 录】《全国中草药汇编》
3、预测地震。据土耳其地震学家艾尔江表示,在强烈地震发生的几小时前,对外界触觉敏感的含羞草叶会突然萎缩,然后枯萎。在地震多发的日本,科学家研究发现,在正常情况下,含羞草的叶子白天张开,夜晚合闭。如果含羞草叶片出现白天合闭,夜晚张开的反常现象,便是发生地震的先兆。如:1938年1月11日上午7时,含羞草开始张开,但是到了10时,叶子突然全部合闭,果然在13日发生了强烈地震。1976年日本地震俱乐部的成员,曾多次观察到含羞草叶子出现反常的合闭现象,结果随后都发生了地震。
含羞草的种植
含羞草的种植技术简单,管理粗放。对气候、阳光、土壤要求不严,但以肥沃、疏松的砂质壤土为佳,喜温暖湿润的环境。
1、种植方法。一般播种繁殖,3月下旬至4月初播种。将种子均匀撒在细土上,覆土1.5厘米左右,在温度18℃左右时,10天左右可出苗(一般入土即长,不需花精力专门管理)。幼苗期生长较慢,7-8厘米时可定植。
2、田间管理。田栽株距25—30厘米,及时松土、锄草、浇水。室内盆栽,夏季每天浇水1次。每月施肥1次,如不想让株形过大,则要减少施肥量,甚至不需施肥。
3、病虫防治:基本无病虫害。如有蛞蝓,可在早晨用新鲜石灰粉防治。
含羞草是多年生的草本植物,但是不像一般草本植物那么柔弱。它的茎从基开始分枝,呈直立或倾斜的形态,高度在 20 至 50 公分左右,全体长着长软的毛和尖锐的刺。叶为掌状复叶,由四个羽片合成。每一羽片上都长着许多小叶片,跟一般的掌状复叶并不相同。在总叶柄的基部有膨大的构造,叫「叶枕」。在叶柄基部附近有托叶。
含羞草的花相当特殊。它开的紫红色或粉红色花球,实际上并不是一朵花,而是许多的小花所形成的花序。假如小心的把球上的每一个小单位分开,就可以看到每一个小单位都有四裂的花瓣、四根长长的雄蕊和一枚雌蕊,原来那一个个的小单位才是它的一朵花。
含羞草的花儿开过以后,大部分的花都会结成荚果,因此我们所看到含羞草果实也是密集成球状的。每一个荚果有三到四节,表面有毛。荚果成熟后,一节一节掉落,只留下节和节之间所形成的空架子,看来十分有趣。
如果你轻轻地触动它一下,它那片开放着的羽状复叶,立即闭合起来,紧接着整个叶子又垂了下去,显出“害羞”的样子,含羞草的名称便由此而来。
为什么我们故意或不小心碰到含羞草,它就会「低头下垂」呢?
含羞草的这种叶片闭合和叶柄下垂的现象,并不是“害羞”,而是植物受刺激和震动后的一种反应。这种反应在生物学上称为感性运动,是含羞草受到外界刺激后,细胞紧张改变的结果。
原来,含羞草的叶子和叶柄具有特殊的结构。在叶柄基部和复叶的小叶基部,都有一个比较膨大的部分,叫做叶枕。叶枕对刺激的反应最为敏感。一旦碰到叶子,刺激立即传到叶柄基部的叶枕,引起两个小叶片闭合起来,触动力大一些,不仅传到小叶的叶枕,而且很快传到叶柄基部的叶枕,整个叶柄就下垂了。为什么会这样呢?这是因为,在叶枕的中心有一个大的维管束,维管束四周充满着具有许多细胞间隙的薄壁组织。当震动传到叶枕时,叶枕的上半部薄壁细胞里的细胞液,被排出到细胞间隙中,使叶枕上半部细胞的膨压降低,而下半部薄壁细胞间隙仍然保持原来的膨压,结果引起小叶片的直立而两个小叶片闭合起来,甚至于整个叶子垂下来。有人做过研究,含羞草在受到刺激后的0.08秒钟内,叶子就会闭合。受刺激后,传导的速度也是很快的,最高速度每秒钟达10厘米。刺激之后,稍过一段时间,一切又慢慢恢复正常,小叶又展开了,叶柄也竖立起来了。恢复的时间一般为5—10分钟。但是,如果我们继续逗弄,接连不断地刺激它的叶子,它就产生“厌烦”之感,不再发生任何反应。这是因为连续的刺激使得叶枕细胞内的细胞液流失了,不能及时得到补充的缘故。
含羞草的这种特殊的本领,是有它的一定历史根源的。它的老家在热带南美洲的巴西,那里常有大风大雨。每当第一滴雨打着叶子时,它立即叶片闭合,叶柄下垂,以躲避狂风暴雨对它的伤害。这是它适应外界环境条件变化的一种适应。另外,含羞草的运动也可以看作是一种自卫方式,动物稍一碰它,它就合拢叶子,动物也就不敢再吃它了。
含羞草不是台湾原产的植物,它的老家远在南美洲。在十七世纪时由荷兰人引进台湾,目前在全省各地的空地、河床、荒废地、操场边等地方,都可以看到;中、南部尤其多
Sunday, 20 May 2007
bat文件的基本应用
bat是dos下的批处理文件
.cmd是nt内核命令行环境的另一种批处理文件
从更广义的角度来看,unix的shell脚本以及其它操作系统甚至应用程序中由外壳进行解释执行的文本,都具有与批处理文件十分相似的作用,而且同样是由专用解释器以行为单位解释执行,这种文本形式更通用的称谓是脚本语言。所以从某个程度分析,batch, unix shell, awk, basic, perl 等脚本语言都是一样的,只不过应用的范围和解释的平台各有不同而已。甚至有些应用程序仍然沿用批处理这一称呼,而其内容和扩展名与dos的批处理却又完全不同。
===================================
首先批处理文件是一个文本文件,这个文件的每一行都是一条DOS命令(大部分时候就好象我们在DOS提示符下执行的命令行一样),你可以使用DOS下的Edit或者Windows的记事本(notepad)等任何文本文件编辑工具创建和修改批处理文件。
==== 注 ===================
批处理文件中完全可以使用非dos命令,甚至可以使用不具有可执行特性的普通数据性文件,这缘于windows系统这个新型解释平台的涉入,使得批处理的应用越来越"边缘化"。所以我们讨论的批处理应该限定在dos环境或者命令行环境中,否则很多观念和设定都需要做比较大的变动。
========================
其次,批处理文件是一种简单的程序,可以通过条件语句(if)和流程控制语句(goto)来控制命令运行的流程,在批处理中也可以使用循环语句(for)来循环执行一条命令。当然,批处理文件的编程能力与C语言等编程语句比起来是十分有限的,也是十分不规范的。批处理的程序语句就是一条条的DOS命令(包括内部命令和外部命令),而批处理的能力主要取决于你所使用的命令。
==== 注 ==================
批处理文件(batch file)也可以称之为批处理程序(batch program),这一点与编译型语言有所不同,就c语言来说,扩展名为c或者cpp的文件可以称之为c语言文件或者c语言源代码,但只有编译连接后的exe文件才可以称之为c语言程序。因为批处理文件本身既具有文本的可读性,又具有程序的可执行性,这些称谓的界限是比较模糊的。
===========================
第三,每个编写好的批处理文件都相当于一个DOS的外部命令,你可以把它所在的目录放到你的DOS搜索路径(path)中来使得它可以在任意位置运行。一个良好的习惯是在硬盘上建立一个bat或者batch目录(例如C:\BATCH),然后将所有你编写的批处理文件放到该目录中,这样只要在path中设置上c:\batch,你就可以在任意位置运行所有你编写的批处理程序。
==== 注 =====
纯以dos系统而言,可执行程序大约可以细分为五类,依照执行优先级由高到低排列分别是:DOSKEY宏命令(预先驻留内存),COMMAND.COM中的内部命令(根据内存的环境随时进驻内存),以com为扩展名的可执行程序(由command.com 直接载入内存),以exe位扩展名的可执行程序(由command.com 重定位后载入内存),以bat位扩展名的批处理程序(由command.com 解释分析,根据其内容按优先级顺序调用第2,3,4,5种可执行程序,分析一行,执行一行,文件本身不载入内存)
============
第四,在DOS和Win9x/Me系统下,C:盘根目录下的AUTOEXEC.BAT批处理文件是自动运行批处理文件,每次系统启动时会自动运行该文件,你可以将系统每次启动时都要运行的命令放入该文件中,例如设置搜索路径,调入鼠标驱动和磁盘缓存,设置系统环境变量等。下面是一个运行于Windows 98下的autoexec.bat的示例:
@ECHO OFF
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\UCDOS;C:\DOSTools;
C:\SYSTOOLS;C:\WINTOOLS;C:\BATCH
LH SMARTDRV.EXE /X
LH DOSKEY.COM /insert
LH CTMOUSE.EXE
SET TEMP=D:\TEMP
SET TMP=D:\TEMP
==== 注 =====
AUTOEXEC.BAT为DOS系统的自动运行批处理文件,由COMMAND.COM启动时解释执行;
而在Win9x环境中,不仅增加支持了 DOSSTART.BAT, WINSTART.BAT 等许多其它自动运行的批处理文件,对AUTOEXEC.BAT 也增加了 .DOS .W40 .BAK .OLD .PWS 等许多变体以适应复杂的环境和多变的需求。
==== willsort 编注 =============
以下关于命令的分类,有很多值得推敲的地方。常用命令中的@本不是命令,而dir、copy等也很常用的命令却没有列入, 而特殊命令中所有命令对我来说都是常用命令。建议将批处理所引用的命令分为内部命令、外部命令、第三方程序三类。而内部命令和外部命令中别有一类是专用于或常用于批处理中的命令可称之为"批处理命令"。
以下摘录MS-DOS 6.22 帮助文档中关于"批处理命令"的文字,当然,其中有些概念和定义已经有些落后了。
批处理命令
批处理文件或批处理程序是一个包含若干MS-DOS命令的正文文件,扩展名为.BAT。当在命令提示符下敲入批处理程序的名称时,MS-DOS成组执行此批处理程序中的命令。
任何在命令提示符下可使用的命令都可用在批处理程序中。此外,下面MS-DOS命令是专门在批处理程序中使用的。
==========
常用命令
echo、@、call、pause、rem(小技巧:用::代替rem)是批处理文件最常用的几个命令,我们就从他们开始学起。
==== 注 ===========
首先, @ 不是一个命令, 而是DOS 批处理的一个特殊标记符, 仅用于屏蔽命令行回显. 下面是DOS命令行或批处理中可能会见到的一些特殊标记符:
CR(0D) 命令行结束符
Escape(1B) ANSI转义字符引导符
Space(20) 常用的参数界定符
Tab(09) ; = 不常用的参数界定符
+ COPY命令文件连接符
* ? 文件通配符
"" 字符串界定符
| 命令管道符
< > >> 文件重定向符
@ 命令行回显屏蔽符
/ 参数开关引导符
: 批处理标签引导符
% 批处理变量引导符
其次, :: 确实可以起到rem 的注释作用, 而且更简洁有效; 但有两点需要注意:
第一, 除了 :: 之外, 任何以 :开头的字符行, 在批处理中都被视作标号, 而直接忽略其后的所有内容, 只是为了与正常的标号相区别, 建议使用 goto 所无法识别的标号, 即在 :后紧跟一个非字母数字的一个特殊符号.
第二, 与rem 不同的是, ::后的字符行在执行时不会回显, 无论是否用echo on打开命令行回显状态, 因为命令解释器不认为他是一个有效的命令行, 就此点来看, rem 在某些场合下将比 :: 更为适用; 另外, rem 可以用于 config.sys 文件中.
=====================
echo 表示显示此命令后的字符
echo off 表示在此语句后所有运行的命令都不显示命令行本身
@与echo off相象,但它是加在每个命令行的最前面,表示运行时不显示这一行的命令行(只能影响当前行)。
call 调用另一个批处理文件(如果不用call而直接调用别的批处理文件,那么执行完那个批处理文件后将无法返回当前文件并执行当前文件的后续命令)。
pause 运行此句会暂停批处理的执行并在屏幕上显示Press any key to continue...的提示,等待用户按任意键后继续
rem 表示此命令后的字符为解释行(注释),不执行,只是给自己今后参考用的(相当于程序中的注释)。
==== 注 =====
此处的描述较为混乱, 不如直接引用个命令的命令行帮助更为条理
-------------------------
ECHO
当程序运行时,显示或隐藏批处理程序中的正文。也可用于允许或禁止命令的回显。
在运行批处理程序时,MS-DOS一般在屏幕上显示(回显)批处理程序中的命令。
使用ECHO命令可关闭此功能。
语法
ECHO [ON|OFF]
若要用echo命令显示一条命令,可用下述语法:
echo [message]
参数
ON|OFF
指定是否允许命令的回显。若要显示当前的ECHO的设置,可使用不带参数的ECHO
命令。
message
指定让MS-DOS在屏幕上显示的正文。
-------------------
CALL
从一个批处理程序中调用另一个批处理程序,而不会引起第一个批处理的中止。
语法
CALL [drive:][path]filename [batch-parameters]
参数
[drive:][path]filename
指定要调用的批处理程序的名字及其存放处。文件名必须用.BAT作扩展名。
batch-parameters
指定批处理程序所需的命令行信息。
-------------------------------
PAUSE
暂停批处理程序的执行并显示一条消息,提示用户按任意键继续执行。只能在批处
理程序中使用该命令。
语法
PAUSE
REM
在批处理文件或CONFIG.SYS中加入注解。也可用REM命令来屏蔽命令(在CONFIG.SYS
中也可以用分号 ; 代替REM命令,但在批处理文件中则不能替代)。
语法
REM [string]
参数
string
指定要屏蔽的命令或要包含的注解。
=======================
例1:用edit编辑a.bat文件,输入下列内容后存盘为c:\a.bat,执行该批处理文件后可实现:将根目录中所有文件写入 a.txt中,启动UCDOS,进入WPS等功能。
批处理文件的内容为: 命令注释:
@echo off 不显示后续命令行及当前命令行
dir c:\*.* >a.txt 将c盘文件列表写入a.txt
call c:\ucdos\ucdos.bat 调用ucdos
echo 你好 显示"你好"
pause 暂停,等待按键继续
rem 准备运行wps 注释:准备运行wps
cd ucdos 进入ucdos目录
wps 运行wps
批处理文件的参数
批处理文件还可以像C语言的函数一样使用参数(相当于DOS命令的命令行参数),这需要用到一个参数表示符"%"。
%[1-9]表示参数,参数是指在运行批处理文件时在文件名后加的以空格(或者Tab)分隔的字符串。变量可以从%0到%9,%0表示批处理命令本身,其它参数字符串用%1到%9顺序表示。
例2:C:根目录下有一批处理文件名为f.bat,内容为:
@echo off
format %1
如果执行C:\>f a:
那么在执行f.bat时,%1就表示a:,这样format %1就相当于format a:,于是上面的命令运行时实际执行的是format a:
例3:C:根目录下一批处理文件名为t.bat,内容为:
@echo off
type %1
type %2
那么运行C:\>t a.txt b.txt
%1 : 表示a.txt
%2 : 表示b.txt
于是上面的命令将顺序地显示a.txt和b.txt文件的内容。
==== 注 ===============
参数在批处理中也作为变量处理, 所以同样使用百分号作为引导符, 其后跟0-9中的一个数字构成参数引用符. 引用符和参数之间 (例如上文中的 %1 与 a: ) 的关系类似于变量指针与变量值的关系. 当我们要引用第十一个或更多个参数时, 就必须移动DOS 的参数起始指针. shift 命令正充当了这个移动指针的角色, 它将参数的起始指针移动到下一个参数, 类似C 语言中的指针操作. 图示如下:
初始状态, cmd 为命令名, 可以用 %0 引用
cmd arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10
^ ^ ^ ^ ^ ^ ^ ^ ^ ^
| | | | | | | | | |
%0 %1 %2 %3 %4 %5 %6 %7 %8 %9
经过1次shift后, cmd 将无法被引用
cmd arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10
^ ^ ^ ^ ^ ^ ^ ^ ^ ^
| | | | | | | | | |
%0 %1 %2 %3 %4 %5 %6 %7 %8 %9
经过2次shift后, arg1也被废弃, %9指向为空, 没有引用意义
cmd arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10
^ ^ ^ ^ ^ ^ ^ ^ ^
| | | | | | | | |
%0 %1 %2 %3 %4 %5 %6 %7 %8
遗憾的是, win9x 和DOS下均不支持 shift 的逆操作. 只有在 nt 内核命令行环境下, shift 才支持 /n 参数, 可以以第一参数为基准返复移动起始指针.
=================
特殊命令
if goto choice for是批处理文件中比较高级的命令,如果这几个你用得很熟练,你就是批处理文件的专家啦。
一、if 是条件语句,用来判断是否符合规定的条件,从而决定执行不同的命令。 有三种格式:
1、if [not] "参数" == "字符串" 待执行的命令
参数如果等于(not表示不等,下同)指定的字符串,则条件成立,运行命令,否则运行下一句。
例:if "%1"=="a" format a:
====
if 的命令行帮助中关于此点的描述为:
IF [NOT] string1==string2 command
在此有以下几点需要注意:
1. 包含字符串的双引号不是语法所必须的, 而只是习惯上使用的一种"防空"字符
2. string1 未必是参数, 它也可以是环境变量, 循环变量以及其他字符串常量或变量
3. command 不是语法所必须的, string2 后跟一个空格就可以构成一个有效的命令行
=============================
2、if [not] exist [路径\]文件名 待执行的命令
如果有指定的文件,则条件成立,运行命令,否则运行下一句。
如: if exist c:\config.sys type c:\config.sys
表示如果存在c:\config.sys文件,则显示它的内容。
****** 注 ********
也可以使用以下的用法:
if exist command
device 是指DOS系统中已加载的设备, 在win98下通常有:
AUX, PRN, CON, NUL
COM1, COM2, COM3, COM4
LPT1, LPT2, LPT3, LPT4
XMSXXXX0, EMMXXXX0
A: B: C: ...,
CLOCK$, CONFIG$, DblBuff$, IFS$HLP$
具体的内容会因硬软件环境的不同而略有差异, 使用这些设备名称时, 需要保证以下三点:
1. 该设备确实存在(由软件虚拟的设备除外)
2. 该设备驱动程序已加载(aux, prn等标准设备由系统缺省定义)
3. 该设备已准备好(主要是指a: b: ..., com1..., lpt1...等)
可通过命令 mem/d | find "device" /i 来检阅你的系统中所加载的设备
另外, 在DOS系统中, 设备也被认为是一种特殊的文件, 而文件也可以称作字符设备; 因为设备(device)与文件都是使用句柄(handle)来管理的, 句柄就是名字, 类似于文件名, 只不过句柄不是应用于磁盘管理, 而是应用于内存管理而已, 所谓设备加载也即指在内存中为其分配可引用的句柄.
==================================
3、if errorlevel <数字> 待执行的命令
很多DOS程序在运行结束后会返回一个数字值用来表示程序运行的结果(或者状态),通过if errorlevel命令可以判断程序的返回值,根据不同的返回值来决定执行不同的命令(返回值必须按照从大到小的顺序排列)。如果返回值等于指定的数字,则条件成立,运行命令,否则运行下一句。
如if errorlevel 2 goto x2
==== 注 ===========
返回值从大到小的顺序排列不是必须的, 而只是执行命令为 goto 时的习惯用法, 当使用 set 作为执行命令时, 通常会从小到大顺序排列, 比如需将返回码置入环境变量, 就需使用以下的顺序形式:
if errorlevel 1 set el=1
if errorlevel 2 set el=2
if errorlevel 3 set el=3
if errorlevel 4 set el=4
if errorlevel 5 set el=5
...
当然, 也可以使用以下循环来替代, 原理是一致的:
for %%e in (1 2 3 4 5 6 7 8...) do if errorlevel %%e set el=%%e
更高Ъ蚪嗟挠梅? 可以参考我写的另一篇关于获取 errorlevel 的文章
出现此种现象的原因是, if errorlevel 比较返回码的判断条件并非等于, 而是大于等于. 由于 goto 的跳转特性, 由小到大排序会导致在较小的返回码处就跳出; 而由于 set命令的 "重复" 赋值特性, 由大到小排序会导致较小的返回码 "覆盖" 较大的返回码.
另外, 虽然 if errorlevel=<数字> command 也是有效的命令行, 但也只是 command.com 解释命令行时将 = 作为命令行切分符而忽略掉罢了
===========================
二、goto 批处理文件运行到这里将跳到goto所指定的标号(标号即label,标号用:后跟标准字符串来定义)处,goto语句一般与if配合使用,根据不同的条件来执行不同的命令组。
如:
goto end
:end
echo this is the end
标号用":字符串"来定义,标号所在行不被执行。
==== willsort 编注
label 常被译为 "标签" , 但是这并不具有广泛的约定性.
goto 与 : 联用可实现执行中途的跳转, 再结合 if 可实现执行过程的条件分支, 多个 if 即可实现命令的分组, 类似 C 中 switch case 结构或者 Basic 中的 select case 结构, 大规模且结构化的命令分组即可实现高级语言中的函数功能. 以下是批处理和C/Basic在语法结构上的对照:
Batch C / Basic
goto&: goto&:
goto&:&if if{}&else{} / if&elseif&endif
goto&:&if... switch&case / select case
goto&:&if&set&envar... function() / function(),sub()
==================================
三、choice 使用此命令可以让用户输入一个字符(用于选择),从而根据用户的选择返回不同的errorlevel,然后于if errorlevel配合,根据用户的选择运行不同的命令。
注意:choice命令为DOS或者Windows系统提供的外部命令,不同版本的choice命令语法会稍有不同,请用choice /?查看用法。
choice的命令语法(该语法为Windows 2003中choice命令的语法,其它版本的choice的命令语法与此大同小异):
CHOICE [/C choices] [/N] [/CS] [/T timeout /D choice] [/M text]
描述:
该工具允许用户从选择列表选择一个项目并返回所选项目的索引。
参数列表:
/C choices 指定要创建的选项列表。默认列表是 "YN"。
/N 在提示符中隐藏选项列表。提示前面的消息得到显示,
选项依旧处于启用状态。
/CS 允许选择分大小写的选项。在默认情况下,这个工具
是不分大小写的。
/T timeout 做出默认选择之前,暂停的秒数。可接受的值是从 0
到 9999。如果指定了 0,就不会有暂停,默认选项
会得到选择。
/D choice 在 nnnn 秒之后指定默认选项。字符必须在用 /C 选
项指定的一组选择中; 同时,必须用 /T 指定 nnnn。
/M text 指定提示之前要显示的消息。如果没有指定,工具只
显示提示。
/? 显示帮助消息。
注意:
ERRORLEVEL 环境变量被设置为从选择集选择的键索引。列出的第一个选
择返回 1,第二个选择返回 2,等等。如果用户按的键不是有效的选择,
该工具会发出警告响声。如果该工具检测到错误状态,它会返回 255 的
ERRORLEVEL 值。如果用户按 Ctrl+Break 或 Ctrl+C 键,该工具会返回 0
的 ERRORLEVEL 值。在一个批程序中使用 ERRORLEVEL 参数时,将参数降
序排列。
示例:
CHOICE /?
CHOICE /C YNC /M "确认请按 Y,否请按 N,或者取消请按 C。"
CHOICE /T 10 /C ync /CS /D y
CHOICE /C ab /M "选项 1 请选择 a,选项 2 请选择 b。"
CHOICE /C ab /N /M "选项 1 请选择 a,选项 2 请选择 b。"
==== willsort 编注 ===============================
我列出win98下choice的用法帮助, 已资区分
Waits for the user to choose one of a set of choices.
等待用户选择一组待选字符中的一个
CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]
/C[:]choices Specifies allowable keys. Default is YN
指定允许的按键(待选字符), 默认为YN
/N Do not display choices and ? at end of prompt string.
不显示提示字符串中的问号和待选字符
/S Treat choice keys as case sensitive.
处理待选字符时大小写敏感
/T[:]c,nn Default choice to c after nn seconds
在 nn 秒后默认选择 c
text Prompt string to display
要显示的提示字符串
ERRORLEVEL is set to offset of key user presses in choices.
ERRORLEVEL 被设置为用户键入的字符在待选字符中的偏移值
如果我运行命令:CHOICE /C YNC /M "确认请按 Y,否请按 N,或者取消请按 C。"
屏幕上会显示:
确认请按 Y,否请按 N,或者取消请按 C。 [Y,N,C]?
例:test.bat的内容如下(注意,用if errorlevel判断返回值时,要按返回值从高到低排列):
@echo off
choice /C dme /M "defrag,mem,end"
if errorlevel 3 goto end
if errorlevel 2 goto mem
if errorlevel 1 goto defrag
:defrag
c:\dos\defrag
goto end
:mem
mem
goto end
:end
echo good bye
此批处理运行后,将显示"defrag,mem,end[D,M,E]?" ,用户可选择d m e ,然后if语句根据用户的选择作出判断,d表示执行标号为defrag的程序段,m表示执行标号为mem的程序段,e表示执行标号为end的程序段,每个程序段最后都以goto end将程序跳到end标号处,然后程序将显示good bye,批处理运行结束。
四、for 循环命令,只要条件符合,它将多次执行同一命令。
语法:
对一组文件中的每一个文件执行某个特定命令。
FOR %%variable IN (set) DO command [command-parameters]
%%variable 指定一个单一字母可替换的参数。
(set) 指定一个或一组文件。可以使用通配符。
command 指定对每个文件执行的命令。
command-parameters
为特定命令指定参数或命令行开关。
例如一个批处理文件中有一行:
for %%c in (*.bat *.txt) do type %%c
则该命令行会显示当前目录下所有以bat和txt为扩展名的文件的内容。
==== willsort 编注 =====================================================
需要指出的是, 当()中的字符串并非单个或多个文件名时, 它将单纯被当作字符串替换, 这个特性再加上()中可以嵌入多个字符串的特性, 很明显 for 可以被看作一种遍历型循环.
当然, 在 nt/2000/xp/2003 系列的命令行环境中, for 被赋予了更多的特性, 使之可以分析命令输出或者文件中的字符串, 也有很多开关被用于扩展了文件替换功能.
========================================================================
批处理示例
1. IF-EXIST
1) 首先用记事本在C:\建立一个test1.bat批处理文件,文件内容如下:
@echo off
IF EXIST \AUTOEXEC.BAT TYPE \AUTOEXEC.BAT
IF NOT EXIST \AUTOEXEC.BAT ECHO \AUTOEXEC.BAT does not exist
然后运行它:
C:\>TEST1.BAT
如果C:\存在AUTOEXEC.BAT文件,那么它的内容就会被显示出来,如果不存在,批处理就会提示你该文件不存在。
2) 接着再建立一个test2.bat文件,内容如下:
@ECHO OFF
IF EXIST \%1 TYPE \%1
IF NOT EXIST \%1 ECHO \%1 does not exist
执行:
C:\>TEST2 AUTOEXEC.BAT
该命令运行结果同上。
说明:
(1) IF EXIST 是用来测试文件是否存在的,格式为
IF EXIST [路径+文件名] 命令
(2) test2.bat文件中的%1是参数,DOS允许传递9个批参数信息给批处理文件,分别为%1~%9(%0表示test2命令本身) ,这有点象编程中的实参和形参的关系,%1是形参,AUTOEXEC.BAT是实参。
==== willsort 编注 =====================================================
DOS没有 "允许传递9个批参数信息" 的限制, 参数的个数只会受到命令行长度和所调用命令处理能力的限制. 但是, 我们在批处理程序中, 在同一时刻只能同时引用10个参数, 因为 DOS只给出了 %0~%9这十个参数引用符.
========================================================================
3) 更进一步的,建立一个名为TEST3.BAT的文件,内容如下:
@echo off
IF "%1" == "A" ECHO XIAO
IF "%2" == "B" ECHO TIAN
IF "%3" == "C" ECHO XIN
如果运行:
C:\>TEST3 A B C
屏幕上会显示:
XIAO
TIAN
XIN
如果运行:
C:\>TEST3 A B
屏幕上会显示
XIAO
TIAN
在这个命令执行过程中,DOS会将一个空字符串指定给参数%3。
2、IF-ERRORLEVEL
建立TEST4.BAT,内容如下:
@ECHO OFF
XCOPY C:\AUTOEXEC.BAT D:\
IF ERRORLEVEL 1 ECHO 文件拷贝失败
IF ERRORLEVEL 0 ECHO 成功拷贝文件
然后执行文件:
C:\>TEST4
如果文件拷贝成功,屏幕就会显示"成功拷贝文件",否则就会显示"文件拷贝失败"。
IF ERRORLEVEL 是用来测试它的上一个DOS命令的返回值的,注意只是上一个命令的返回值,而且返回值必须依照从大到小次序顺序判断。
因此下面的批处理文件是错误的:
@ECHO OFF
XCOPY C:\AUTOEXEC.BAT D:\
IF ERRORLEVEL 0 ECHO 成功拷贝文件
IF ERRORLEVEL 1 ECHO 未找到拷贝文件
IF ERRORLEVEL 2 ECHO 用户通过ctrl-c中止拷贝操作
IF ERRORLEVEL 3 ECHO 预置错误阻止文件拷贝操作
IF ERRORLEVEL 4 ECHO 拷贝过程中写盘错误
无论拷贝是否成功,后面的:
未找到拷贝文件
用户通过ctrl-c中止拷贝操作
预置错误阻止文件拷贝操作
拷贝过程中写盘错误
都将显示出来。
以下就是几个常用命令的返回值及其代表的意义:
backup
0 备份成功
1 未找到备份文件
2 文件共享冲突阻止备份完成
3 用户用ctrl-c中止备份
4 由于致命的错误使备份操作中止
diskcomp
0 盘比较相同
1 盘比较不同
2 用户通过ctrl-c中止比较操作
3 由于致命的错误使比较操作中止
4 预置错误中止比较
diskcopy
0 盘拷贝操作成功
1 非致命盘读/写错
2 用户通过ctrl-c结束拷贝操作
3 因致命的处理错误使盘拷贝中止
4 预置错误阻止拷贝操作
format
0 格式化成功
3 用户
.cmd是nt内核命令行环境的另一种批处理文件
从更广义的角度来看,unix的shell脚本以及其它操作系统甚至应用程序中由外壳进行解释执行的文本,都具有与批处理文件十分相似的作用,而且同样是由专用解释器以行为单位解释执行,这种文本形式更通用的称谓是脚本语言。所以从某个程度分析,batch, unix shell, awk, basic, perl 等脚本语言都是一样的,只不过应用的范围和解释的平台各有不同而已。甚至有些应用程序仍然沿用批处理这一称呼,而其内容和扩展名与dos的批处理却又完全不同。
===================================
首先批处理文件是一个文本文件,这个文件的每一行都是一条DOS命令(大部分时候就好象我们在DOS提示符下执行的命令行一样),你可以使用DOS下的Edit或者Windows的记事本(notepad)等任何文本文件编辑工具创建和修改批处理文件。
==== 注 ===================
批处理文件中完全可以使用非dos命令,甚至可以使用不具有可执行特性的普通数据性文件,这缘于windows系统这个新型解释平台的涉入,使得批处理的应用越来越"边缘化"。所以我们讨论的批处理应该限定在dos环境或者命令行环境中,否则很多观念和设定都需要做比较大的变动。
========================
其次,批处理文件是一种简单的程序,可以通过条件语句(if)和流程控制语句(goto)来控制命令运行的流程,在批处理中也可以使用循环语句(for)来循环执行一条命令。当然,批处理文件的编程能力与C语言等编程语句比起来是十分有限的,也是十分不规范的。批处理的程序语句就是一条条的DOS命令(包括内部命令和外部命令),而批处理的能力主要取决于你所使用的命令。
==== 注 ==================
批处理文件(batch file)也可以称之为批处理程序(batch program),这一点与编译型语言有所不同,就c语言来说,扩展名为c或者cpp的文件可以称之为c语言文件或者c语言源代码,但只有编译连接后的exe文件才可以称之为c语言程序。因为批处理文件本身既具有文本的可读性,又具有程序的可执行性,这些称谓的界限是比较模糊的。
===========================
第三,每个编写好的批处理文件都相当于一个DOS的外部命令,你可以把它所在的目录放到你的DOS搜索路径(path)中来使得它可以在任意位置运行。一个良好的习惯是在硬盘上建立一个bat或者batch目录(例如C:\BATCH),然后将所有你编写的批处理文件放到该目录中,这样只要在path中设置上c:\batch,你就可以在任意位置运行所有你编写的批处理程序。
==== 注 =====
纯以dos系统而言,可执行程序大约可以细分为五类,依照执行优先级由高到低排列分别是:DOSKEY宏命令(预先驻留内存),COMMAND.COM中的内部命令(根据内存的环境随时进驻内存),以com为扩展名的可执行程序(由command.com 直接载入内存),以exe位扩展名的可执行程序(由command.com 重定位后载入内存),以bat位扩展名的批处理程序(由command.com 解释分析,根据其内容按优先级顺序调用第2,3,4,5种可执行程序,分析一行,执行一行,文件本身不载入内存)
============
第四,在DOS和Win9x/Me系统下,C:盘根目录下的AUTOEXEC.BAT批处理文件是自动运行批处理文件,每次系统启动时会自动运行该文件,你可以将系统每次启动时都要运行的命令放入该文件中,例如设置搜索路径,调入鼠标驱动和磁盘缓存,设置系统环境变量等。下面是一个运行于Windows 98下的autoexec.bat的示例:
@ECHO OFF
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\UCDOS;C:\DOSTools;
C:\SYSTOOLS;C:\WINTOOLS;C:\BATCH
LH SMARTDRV.EXE /X
LH DOSKEY.COM /insert
LH CTMOUSE.EXE
SET TEMP=D:\TEMP
SET TMP=D:\TEMP
==== 注 =====
AUTOEXEC.BAT为DOS系统的自动运行批处理文件,由COMMAND.COM启动时解释执行;
而在Win9x环境中,不仅增加支持了 DOSSTART.BAT, WINSTART.BAT 等许多其它自动运行的批处理文件,对AUTOEXEC.BAT 也增加了 .DOS .W40 .BAK .OLD .PWS 等许多变体以适应复杂的环境和多变的需求。
==== willsort 编注 =============
以下关于命令的分类,有很多值得推敲的地方。常用命令中的@本不是命令,而dir、copy等也很常用的命令却没有列入, 而特殊命令中所有命令对我来说都是常用命令。建议将批处理所引用的命令分为内部命令、外部命令、第三方程序三类。而内部命令和外部命令中别有一类是专用于或常用于批处理中的命令可称之为"批处理命令"。
以下摘录MS-DOS 6.22 帮助文档中关于"批处理命令"的文字,当然,其中有些概念和定义已经有些落后了。
批处理命令
批处理文件或批处理程序是一个包含若干MS-DOS命令的正文文件,扩展名为.BAT。当在命令提示符下敲入批处理程序的名称时,MS-DOS成组执行此批处理程序中的命令。
任何在命令提示符下可使用的命令都可用在批处理程序中。此外,下面MS-DOS命令是专门在批处理程序中使用的。
==========
常用命令
echo、@、call、pause、rem(小技巧:用::代替rem)是批处理文件最常用的几个命令,我们就从他们开始学起。
==== 注 ===========
首先, @ 不是一个命令, 而是DOS 批处理的一个特殊标记符, 仅用于屏蔽命令行回显. 下面是DOS命令行或批处理中可能会见到的一些特殊标记符:
CR(0D) 命令行结束符
Escape(1B) ANSI转义字符引导符
Space(20) 常用的参数界定符
Tab(09) ; = 不常用的参数界定符
+ COPY命令文件连接符
* ? 文件通配符
"" 字符串界定符
| 命令管道符
< > >> 文件重定向符
@ 命令行回显屏蔽符
/ 参数开关引导符
: 批处理标签引导符
% 批处理变量引导符
其次, :: 确实可以起到rem 的注释作用, 而且更简洁有效; 但有两点需要注意:
第一, 除了 :: 之外, 任何以 :开头的字符行, 在批处理中都被视作标号, 而直接忽略其后的所有内容, 只是为了与正常的标号相区别, 建议使用 goto 所无法识别的标号, 即在 :后紧跟一个非字母数字的一个特殊符号.
第二, 与rem 不同的是, ::后的字符行在执行时不会回显, 无论是否用echo on打开命令行回显状态, 因为命令解释器不认为他是一个有效的命令行, 就此点来看, rem 在某些场合下将比 :: 更为适用; 另外, rem 可以用于 config.sys 文件中.
=====================
echo 表示显示此命令后的字符
echo off 表示在此语句后所有运行的命令都不显示命令行本身
@与echo off相象,但它是加在每个命令行的最前面,表示运行时不显示这一行的命令行(只能影响当前行)。
call 调用另一个批处理文件(如果不用call而直接调用别的批处理文件,那么执行完那个批处理文件后将无法返回当前文件并执行当前文件的后续命令)。
pause 运行此句会暂停批处理的执行并在屏幕上显示Press any key to continue...的提示,等待用户按任意键后继续
rem 表示此命令后的字符为解释行(注释),不执行,只是给自己今后参考用的(相当于程序中的注释)。
==== 注 =====
此处的描述较为混乱, 不如直接引用个命令的命令行帮助更为条理
-------------------------
ECHO
当程序运行时,显示或隐藏批处理程序中的正文。也可用于允许或禁止命令的回显。
在运行批处理程序时,MS-DOS一般在屏幕上显示(回显)批处理程序中的命令。
使用ECHO命令可关闭此功能。
语法
ECHO [ON|OFF]
若要用echo命令显示一条命令,可用下述语法:
echo [message]
参数
ON|OFF
指定是否允许命令的回显。若要显示当前的ECHO的设置,可使用不带参数的ECHO
命令。
message
指定让MS-DOS在屏幕上显示的正文。
-------------------
CALL
从一个批处理程序中调用另一个批处理程序,而不会引起第一个批处理的中止。
语法
CALL [drive:][path]filename [batch-parameters]
参数
[drive:][path]filename
指定要调用的批处理程序的名字及其存放处。文件名必须用.BAT作扩展名。
batch-parameters
指定批处理程序所需的命令行信息。
-------------------------------
PAUSE
暂停批处理程序的执行并显示一条消息,提示用户按任意键继续执行。只能在批处
理程序中使用该命令。
语法
PAUSE
REM
在批处理文件或CONFIG.SYS中加入注解。也可用REM命令来屏蔽命令(在CONFIG.SYS
中也可以用分号 ; 代替REM命令,但在批处理文件中则不能替代)。
语法
REM [string]
参数
string
指定要屏蔽的命令或要包含的注解。
=======================
例1:用edit编辑a.bat文件,输入下列内容后存盘为c:\a.bat,执行该批处理文件后可实现:将根目录中所有文件写入 a.txt中,启动UCDOS,进入WPS等功能。
批处理文件的内容为: 命令注释:
@echo off 不显示后续命令行及当前命令行
dir c:\*.* >a.txt 将c盘文件列表写入a.txt
call c:\ucdos\ucdos.bat 调用ucdos
echo 你好 显示"你好"
pause 暂停,等待按键继续
rem 准备运行wps 注释:准备运行wps
cd ucdos 进入ucdos目录
wps 运行wps
批处理文件的参数
批处理文件还可以像C语言的函数一样使用参数(相当于DOS命令的命令行参数),这需要用到一个参数表示符"%"。
%[1-9]表示参数,参数是指在运行批处理文件时在文件名后加的以空格(或者Tab)分隔的字符串。变量可以从%0到%9,%0表示批处理命令本身,其它参数字符串用%1到%9顺序表示。
例2:C:根目录下有一批处理文件名为f.bat,内容为:
@echo off
format %1
如果执行C:\>f a:
那么在执行f.bat时,%1就表示a:,这样format %1就相当于format a:,于是上面的命令运行时实际执行的是format a:
例3:C:根目录下一批处理文件名为t.bat,内容为:
@echo off
type %1
type %2
那么运行C:\>t a.txt b.txt
%1 : 表示a.txt
%2 : 表示b.txt
于是上面的命令将顺序地显示a.txt和b.txt文件的内容。
==== 注 ===============
参数在批处理中也作为变量处理, 所以同样使用百分号作为引导符, 其后跟0-9中的一个数字构成参数引用符. 引用符和参数之间 (例如上文中的 %1 与 a: ) 的关系类似于变量指针与变量值的关系. 当我们要引用第十一个或更多个参数时, 就必须移动DOS 的参数起始指针. shift 命令正充当了这个移动指针的角色, 它将参数的起始指针移动到下一个参数, 类似C 语言中的指针操作. 图示如下:
初始状态, cmd 为命令名, 可以用 %0 引用
cmd arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10
^ ^ ^ ^ ^ ^ ^ ^ ^ ^
| | | | | | | | | |
%0 %1 %2 %3 %4 %5 %6 %7 %8 %9
经过1次shift后, cmd 将无法被引用
cmd arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10
^ ^ ^ ^ ^ ^ ^ ^ ^ ^
| | | | | | | | | |
%0 %1 %2 %3 %4 %5 %6 %7 %8 %9
经过2次shift后, arg1也被废弃, %9指向为空, 没有引用意义
cmd arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10
^ ^ ^ ^ ^ ^ ^ ^ ^
| | | | | | | | |
%0 %1 %2 %3 %4 %5 %6 %7 %8
遗憾的是, win9x 和DOS下均不支持 shift 的逆操作. 只有在 nt 内核命令行环境下, shift 才支持 /n 参数, 可以以第一参数为基准返复移动起始指针.
=================
特殊命令
if goto choice for是批处理文件中比较高级的命令,如果这几个你用得很熟练,你就是批处理文件的专家啦。
一、if 是条件语句,用来判断是否符合规定的条件,从而决定执行不同的命令。 有三种格式:
1、if [not] "参数" == "字符串" 待执行的命令
参数如果等于(not表示不等,下同)指定的字符串,则条件成立,运行命令,否则运行下一句。
例:if "%1"=="a" format a:
====
if 的命令行帮助中关于此点的描述为:
IF [NOT] string1==string2 command
在此有以下几点需要注意:
1. 包含字符串的双引号不是语法所必须的, 而只是习惯上使用的一种"防空"字符
2. string1 未必是参数, 它也可以是环境变量, 循环变量以及其他字符串常量或变量
3. command 不是语法所必须的, string2 后跟一个空格就可以构成一个有效的命令行
=============================
2、if [not] exist [路径\]文件名 待执行的命令
如果有指定的文件,则条件成立,运行命令,否则运行下一句。
如: if exist c:\config.sys type c:\config.sys
表示如果存在c:\config.sys文件,则显示它的内容。
****** 注 ********
也可以使用以下的用法:
if exist command
device 是指DOS系统中已加载的设备, 在win98下通常有:
AUX, PRN, CON, NUL
COM1, COM2, COM3, COM4
LPT1, LPT2, LPT3, LPT4
XMSXXXX0, EMMXXXX0
A: B: C: ...,
CLOCK$, CONFIG$, DblBuff$, IFS$HLP$
具体的内容会因硬软件环境的不同而略有差异, 使用这些设备名称时, 需要保证以下三点:
1. 该设备确实存在(由软件虚拟的设备除外)
2. 该设备驱动程序已加载(aux, prn等标准设备由系统缺省定义)
3. 该设备已准备好(主要是指a: b: ..., com1..., lpt1...等)
可通过命令 mem/d | find "device" /i 来检阅你的系统中所加载的设备
另外, 在DOS系统中, 设备也被认为是一种特殊的文件, 而文件也可以称作字符设备; 因为设备(device)与文件都是使用句柄(handle)来管理的, 句柄就是名字, 类似于文件名, 只不过句柄不是应用于磁盘管理, 而是应用于内存管理而已, 所谓设备加载也即指在内存中为其分配可引用的句柄.
==================================
3、if errorlevel <数字> 待执行的命令
很多DOS程序在运行结束后会返回一个数字值用来表示程序运行的结果(或者状态),通过if errorlevel命令可以判断程序的返回值,根据不同的返回值来决定执行不同的命令(返回值必须按照从大到小的顺序排列)。如果返回值等于指定的数字,则条件成立,运行命令,否则运行下一句。
如if errorlevel 2 goto x2
==== 注 ===========
返回值从大到小的顺序排列不是必须的, 而只是执行命令为 goto 时的习惯用法, 当使用 set 作为执行命令时, 通常会从小到大顺序排列, 比如需将返回码置入环境变量, 就需使用以下的顺序形式:
if errorlevel 1 set el=1
if errorlevel 2 set el=2
if errorlevel 3 set el=3
if errorlevel 4 set el=4
if errorlevel 5 set el=5
...
当然, 也可以使用以下循环来替代, 原理是一致的:
for %%e in (1 2 3 4 5 6 7 8...) do if errorlevel %%e set el=%%e
更高Ъ蚪嗟挠梅? 可以参考我写的另一篇关于获取 errorlevel 的文章
出现此种现象的原因是, if errorlevel 比较返回码的判断条件并非等于, 而是大于等于. 由于 goto 的跳转特性, 由小到大排序会导致在较小的返回码处就跳出; 而由于 set命令的 "重复" 赋值特性, 由大到小排序会导致较小的返回码 "覆盖" 较大的返回码.
另外, 虽然 if errorlevel=<数字> command 也是有效的命令行, 但也只是 command.com 解释命令行时将 = 作为命令行切分符而忽略掉罢了
===========================
二、goto 批处理文件运行到这里将跳到goto所指定的标号(标号即label,标号用:后跟标准字符串来定义)处,goto语句一般与if配合使用,根据不同的条件来执行不同的命令组。
如:
goto end
:end
echo this is the end
标号用":字符串"来定义,标号所在行不被执行。
==== willsort 编注
label 常被译为 "标签" , 但是这并不具有广泛的约定性.
goto 与 : 联用可实现执行中途的跳转, 再结合 if 可实现执行过程的条件分支, 多个 if 即可实现命令的分组, 类似 C 中 switch case 结构或者 Basic 中的 select case 结构, 大规模且结构化的命令分组即可实现高级语言中的函数功能. 以下是批处理和C/Basic在语法结构上的对照:
Batch C / Basic
goto&: goto&:
goto&:&if if{}&else{} / if&elseif&endif
goto&:&if... switch&case / select case
goto&:&if&set&envar... function() / function(),sub()
==================================
三、choice 使用此命令可以让用户输入一个字符(用于选择),从而根据用户的选择返回不同的errorlevel,然后于if errorlevel配合,根据用户的选择运行不同的命令。
注意:choice命令为DOS或者Windows系统提供的外部命令,不同版本的choice命令语法会稍有不同,请用choice /?查看用法。
choice的命令语法(该语法为Windows 2003中choice命令的语法,其它版本的choice的命令语法与此大同小异):
CHOICE [/C choices] [/N] [/CS] [/T timeout /D choice] [/M text]
描述:
该工具允许用户从选择列表选择一个项目并返回所选项目的索引。
参数列表:
/C choices 指定要创建的选项列表。默认列表是 "YN"。
/N 在提示符中隐藏选项列表。提示前面的消息得到显示,
选项依旧处于启用状态。
/CS 允许选择分大小写的选项。在默认情况下,这个工具
是不分大小写的。
/T timeout 做出默认选择之前,暂停的秒数。可接受的值是从 0
到 9999。如果指定了 0,就不会有暂停,默认选项
会得到选择。
/D choice 在 nnnn 秒之后指定默认选项。字符必须在用 /C 选
项指定的一组选择中; 同时,必须用 /T 指定 nnnn。
/M text 指定提示之前要显示的消息。如果没有指定,工具只
显示提示。
/? 显示帮助消息。
注意:
ERRORLEVEL 环境变量被设置为从选择集选择的键索引。列出的第一个选
择返回 1,第二个选择返回 2,等等。如果用户按的键不是有效的选择,
该工具会发出警告响声。如果该工具检测到错误状态,它会返回 255 的
ERRORLEVEL 值。如果用户按 Ctrl+Break 或 Ctrl+C 键,该工具会返回 0
的 ERRORLEVEL 值。在一个批程序中使用 ERRORLEVEL 参数时,将参数降
序排列。
示例:
CHOICE /?
CHOICE /C YNC /M "确认请按 Y,否请按 N,或者取消请按 C。"
CHOICE /T 10 /C ync /CS /D y
CHOICE /C ab /M "选项 1 请选择 a,选项 2 请选择 b。"
CHOICE /C ab /N /M "选项 1 请选择 a,选项 2 请选择 b。"
==== willsort 编注 ===============================
我列出win98下choice的用法帮助, 已资区分
Waits for the user to choose one of a set of choices.
等待用户选择一组待选字符中的一个
CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]
/C[:]choices Specifies allowable keys. Default is YN
指定允许的按键(待选字符), 默认为YN
/N Do not display choices and ? at end of prompt string.
不显示提示字符串中的问号和待选字符
/S Treat choice keys as case sensitive.
处理待选字符时大小写敏感
/T[:]c,nn Default choice to c after nn seconds
在 nn 秒后默认选择 c
text Prompt string to display
要显示的提示字符串
ERRORLEVEL is set to offset of key user presses in choices.
ERRORLEVEL 被设置为用户键入的字符在待选字符中的偏移值
如果我运行命令:CHOICE /C YNC /M "确认请按 Y,否请按 N,或者取消请按 C。"
屏幕上会显示:
确认请按 Y,否请按 N,或者取消请按 C。 [Y,N,C]?
例:test.bat的内容如下(注意,用if errorlevel判断返回值时,要按返回值从高到低排列):
@echo off
choice /C dme /M "defrag,mem,end"
if errorlevel 3 goto end
if errorlevel 2 goto mem
if errorlevel 1 goto defrag
:defrag
c:\dos\defrag
goto end
:mem
mem
goto end
:end
echo good bye
此批处理运行后,将显示"defrag,mem,end[D,M,E]?" ,用户可选择d m e ,然后if语句根据用户的选择作出判断,d表示执行标号为defrag的程序段,m表示执行标号为mem的程序段,e表示执行标号为end的程序段,每个程序段最后都以goto end将程序跳到end标号处,然后程序将显示good bye,批处理运行结束。
四、for 循环命令,只要条件符合,它将多次执行同一命令。
语法:
对一组文件中的每一个文件执行某个特定命令。
FOR %%variable IN (set) DO command [command-parameters]
%%variable 指定一个单一字母可替换的参数。
(set) 指定一个或一组文件。可以使用通配符。
command 指定对每个文件执行的命令。
command-parameters
为特定命令指定参数或命令行开关。
例如一个批处理文件中有一行:
for %%c in (*.bat *.txt) do type %%c
则该命令行会显示当前目录下所有以bat和txt为扩展名的文件的内容。
==== willsort 编注 =====================================================
需要指出的是, 当()中的字符串并非单个或多个文件名时, 它将单纯被当作字符串替换, 这个特性再加上()中可以嵌入多个字符串的特性, 很明显 for 可以被看作一种遍历型循环.
当然, 在 nt/2000/xp/2003 系列的命令行环境中, for 被赋予了更多的特性, 使之可以分析命令输出或者文件中的字符串, 也有很多开关被用于扩展了文件替换功能.
========================================================================
批处理示例
1. IF-EXIST
1) 首先用记事本在C:\建立一个test1.bat批处理文件,文件内容如下:
@echo off
IF EXIST \AUTOEXEC.BAT TYPE \AUTOEXEC.BAT
IF NOT EXIST \AUTOEXEC.BAT ECHO \AUTOEXEC.BAT does not exist
然后运行它:
C:\>TEST1.BAT
如果C:\存在AUTOEXEC.BAT文件,那么它的内容就会被显示出来,如果不存在,批处理就会提示你该文件不存在。
2) 接着再建立一个test2.bat文件,内容如下:
@ECHO OFF
IF EXIST \%1 TYPE \%1
IF NOT EXIST \%1 ECHO \%1 does not exist
执行:
C:\>TEST2 AUTOEXEC.BAT
该命令运行结果同上。
说明:
(1) IF EXIST 是用来测试文件是否存在的,格式为
IF EXIST [路径+文件名] 命令
(2) test2.bat文件中的%1是参数,DOS允许传递9个批参数信息给批处理文件,分别为%1~%9(%0表示test2命令本身) ,这有点象编程中的实参和形参的关系,%1是形参,AUTOEXEC.BAT是实参。
==== willsort 编注 =====================================================
DOS没有 "允许传递9个批参数信息" 的限制, 参数的个数只会受到命令行长度和所调用命令处理能力的限制. 但是, 我们在批处理程序中, 在同一时刻只能同时引用10个参数, 因为 DOS只给出了 %0~%9这十个参数引用符.
========================================================================
3) 更进一步的,建立一个名为TEST3.BAT的文件,内容如下:
@echo off
IF "%1" == "A" ECHO XIAO
IF "%2" == "B" ECHO TIAN
IF "%3" == "C" ECHO XIN
如果运行:
C:\>TEST3 A B C
屏幕上会显示:
XIAO
TIAN
XIN
如果运行:
C:\>TEST3 A B
屏幕上会显示
XIAO
TIAN
在这个命令执行过程中,DOS会将一个空字符串指定给参数%3。
2、IF-ERRORLEVEL
建立TEST4.BAT,内容如下:
@ECHO OFF
XCOPY C:\AUTOEXEC.BAT D:\
IF ERRORLEVEL 1 ECHO 文件拷贝失败
IF ERRORLEVEL 0 ECHO 成功拷贝文件
然后执行文件:
C:\>TEST4
如果文件拷贝成功,屏幕就会显示"成功拷贝文件",否则就会显示"文件拷贝失败"。
IF ERRORLEVEL 是用来测试它的上一个DOS命令的返回值的,注意只是上一个命令的返回值,而且返回值必须依照从大到小次序顺序判断。
因此下面的批处理文件是错误的:
@ECHO OFF
XCOPY C:\AUTOEXEC.BAT D:\
IF ERRORLEVEL 0 ECHO 成功拷贝文件
IF ERRORLEVEL 1 ECHO 未找到拷贝文件
IF ERRORLEVEL 2 ECHO 用户通过ctrl-c中止拷贝操作
IF ERRORLEVEL 3 ECHO 预置错误阻止文件拷贝操作
IF ERRORLEVEL 4 ECHO 拷贝过程中写盘错误
无论拷贝是否成功,后面的:
未找到拷贝文件
用户通过ctrl-c中止拷贝操作
预置错误阻止文件拷贝操作
拷贝过程中写盘错误
都将显示出来。
以下就是几个常用命令的返回值及其代表的意义:
backup
0 备份成功
1 未找到备份文件
2 文件共享冲突阻止备份完成
3 用户用ctrl-c中止备份
4 由于致命的错误使备份操作中止
diskcomp
0 盘比较相同
1 盘比较不同
2 用户通过ctrl-c中止比较操作
3 由于致命的错误使比较操作中止
4 预置错误中止比较
diskcopy
0 盘拷贝操作成功
1 非致命盘读/写错
2 用户通过ctrl-c结束拷贝操作
3 因致命的处理错误使盘拷贝中止
4 预置错误阻止拷贝操作
format
0 格式化成功
3 用户
Subscribe to:
Posts (Atom)