开发者

Executing jar with file names as arguments

开发者 https://www.devze.com 2023-03-04 05:03 出处:网络
I want to run a jar with file names as arguments. for eg. java -jar xyz.jar \"C:\\files\"where \"C:\\files\" directory contains all the files.

I want to run a jar with file names as arguments. for eg.

java -jar xyz.jar "C:\files" where "C:\files" directory contains all the files.

开发者_StackOverflow社区Can anybody help me with this?


What does the main class in the xyz.jar do?

Does it main method accept file names as arguments?

Does it understand that if the argument is a directory name, it needs to get the list of files in the directory and perform the operation on them instead?

0

精彩评论

暂无评论...
验证码 换一张
取 消