1

I have a problem: I want to get the filename only from this path line in Command Prompt

Here's my path:

\\jktfile-01\lsmk\SRP\BankPelapor\201209\Instance\2882000-2012-09-30-BSMS26.xml

What kind of command should I do?

I already tried this solution How to get filename only without path in windows command line?

but it didn't work...

1

1 Answer 1

1

Dir /b \\jktfile-01\lsmk\SRP\BankPelapor\201209\Instance\*.xml

will output

2882000-2012-09-30-BSMS26.xml

along with all other .xml files.

Not 100% sure what you are asking for though.

2
  • I believe the OP is looking for dir /b \\jktfile-01\lsmk\SRP\BankPelapor\201209\Instance\2882000-2012-09-30-BSMS26.xml, which will output just 2882000-2012-09-30-BSMS26.xml. Mar 14, 2013 at 5:53
  • @Scott Yep i want to get the file name from the line of link that i got, thx
    – Sabilv
    Mar 14, 2013 at 7:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .