user1452954
user1452954

Reputation: 89

Define a variable and run as command in Batch file

I'm trying to define a line of batch command and run it

I use something like this :

pushd "%WORKSPACE%"
set mycommand = translate.py documentname
%XD%

but it doesn't run at all

Anybody knows how to do it ?

Upvotes: 0

Views: 72

Answers (1)

Kit
Kit

Reputation: 1171

I think it would be like:

 pushd "%WORKSPACE"
 set mycommand=translate.py "documentname.py"
 %mycommand%

Hopefully it's like that...

Upvotes: 1

Related Questions