Get file name of full path argument in Batch

Posted by Semyon Perepelitsa on Super User See other posts from Super User or by Semyon Perepelitsa
Published on 2010-04-17T07:08:16Z Indexed on 2010/04/17 7:14 UTC
Read the original article Hit count: 824

Filed under:

Batch-program launchs with 1 parameter (full path to file)

program.cmd "C:\Path\To\File\Filename.txt"

I want to execute C:\Path\To\File\Filename.exe, what do I have to write in program.cmd?

© Super User or respective owner

Related posts about batch