1.

Solve : rename a file?

Answer»

how do you CHANGE the extention when you don't know the file NAME
the reason i don't know the file name is because it is suplied by the %1 parameter Quote from: mat123 on April 18, 2010, 07:29:31 AM

how do you change the extention when you don't know the file name
the reason i don't know the file name is because it is suplied by the %1 parameter

If %1 is the complete filename then %~x1 is the extension


%1      "c:\my path\my PROGRAM.exe"
%~d1    c:
%~p1    \my path\
%~n1    my program
%~x1    .exe
%~dpnx1 c:\my path\my program.exe


thank you salmon trout


Discussion

No Comment Found