Ken
Ken

Reputation: 157

Passing parameters on a batch file

Could anyone help me out, I have a batch file find.bat

which has a statement:

findmp %VARIABLE%

what I would like to find out is how to pass a paramater on the batch file

e.g. find.bat /C:\Test

So when called the batch file would execute:

findmp C:\Test

Can this be done in Batch?

Upvotes: 2

Views: 2098

Answers (1)

ariel
ariel

Reputation: 16150

can't be the first parameter?

find.bat c:\test

and inside the bat:

findmp "%1"

Upvotes: 2

Related Questions