@will123 Waiting for Lupo reply if you want you can use my solution:
1- New txt file wher you want
2- Open it and write:
@echo off
set /a cut=%3 + 1
set path=%1
set name=%2
set source=%path:~0,-1%\%name:~1%
call set newname=%%name:~%cut%%%
set dest="%newname%
ren %source% %dest%
3- Rename file in ???.bat (i use cutX.bat)
4- In Dropit:
4.1- Name: what you want
4.2- Rule what you want
4.3- Action: Open With
4.4- path+name.bat "%ParentDir%" "%FileName%.%FileExt%" 2 (e.g C:\Users\User Name\cutX.bat "%ParentDir%" "%FileName%.%FileExt%" 2)
Attention 1: don't change "%ParentDir%" "%FileName%.%FileExt%"
Attention 2: the number at the end is the chars to cut from beginning
eg. This is a try.txt
C:\Users\User Name\cutX.bat "%ParentDir%" "%FileName%.%FileExt%" 2 = is is a try.txt
C:\Users\User Name\cutX.bat "%ParentDir%" "%FileName%.%FileExt%" 3 = s is a try.txt
C:\Users\User Name\cutX.bat "%ParentDir%" "%FileName%.%FileExt%" 4 = is a try.txt
C:\Users\User Name\cutX.bat "%ParentDir%" "%FileName%.%FileExt%" 5 = is a try.txt
For Lupo:
Can you add special variable field? Like this #var=abc# and when DropIt find this field execute the command in it to store a var in %DropItVar% and then use %DropITVar% in the real command.
E.g.
Action : rename
TextField: #myvar=%FileName:~2%#.%FileExt%
First execute #myvar=%FileName:~2%# and store it in %DropItmyvar%
and then execute %DropItmyvar%.%FileExt%
or
Action : rename
TextField: #myvar<abc.bat %FileName%#.%FileExt%
First execute abc.bat %FileName% leaving the user to set value in %myvar%
and then execute %myvar%.%FileExt%
or an option popup with:
Variable name: myvar
Textarea with batch code to execute
p.s. I love dropIT
