Asif Mohammed
Asif Mohammed

Reputation: 91

How to pass current directory as parameter in CMD

I have a VBS files, for which parameter is a folder. when i run this file from CMD i want it to take current selection of folder as parameter to it.

Upvotes: 9

Views: 7048

Answers (1)

Valamas
Valamas

Reputation: 24759

%CD%

will give you the current directory

Upvotes: 10

Related Questions