Getting file count into command

Hello!

Is there a way to put file count into a command (fe. number of .exe files in source directory)?

Not directly.

You could probably do it with a bit of VBScript (or similar), depending on exactly what you want.

Here is a sample code that does this:

cmd /C for /F %P in ('dir *.mp3^|find /c /v ""') do e:\dopus\dopusrt /cmd Rename FROM={sourcepath} TO="Files inside- %P"