CMD: Find Filename from %1 in batch-file
Posted: Wed Sep 30, 2009 10:14 am
If have a simple question regarding DOS/CMD commands:
I have a Link in my Windows "Sendto"-folder which is linked to a batch-file. In the batch file is the command
which gives me the whole path like
That is clear.
How to get only the filename?
Regards
Peter
I have a Link in my Windows "Sendto"-folder which is linked to a batch-file. In the batch file is the command
Code: Select all
set PathName=%1
Code: Select all
c:\test\support\hallo.txt
How to get only the filename?
Code: Select all
set fileName=???
Peter