Page 1 of 1

[solved] Rename script does not work in last version

Posted: 02 Sep 2021 14:04
by lian00
Hello, I use this script to rename files and with the last version on XYP, it does not work anymore.

Code: Select all

$name = input("Modifier le nom", "Nom", , [style=s], [cancel], [width=600], [height=400]); copytext "$name"; renameitem( "namenew-<date yyyy-mm-dd>-<clipboard>", , ,)
Error showing

Code: Select all

Error:  	13 (0x0000000D)
Desc:   	Type mismatch
Dll:    	0
Proc:   	script_Process: set

Source: 	XYplorer
XY ver: 	XYplorer 22.20.0000
OS:     	Windows 10 Windows 10, 64-bit, Release 2009, Build 19042.1165
Locale: 	1036 (fr-FR)
ANSI:   	1252, ACP: 1252  (ANSI - latin I)
Font:   	Segoe UI 11,25, DBCS: No
DPI:    	96 (100%), 1920x1080

Date:   	2021-09-02 14:04:00
Thanks for any help.

Re: Rename script does not work in last version

Posted: 02 Sep 2021 14:40
by highend
Can't reproduce,

Code: Select all

$name = input("Modifier le nom", "Nom"); renameitem("namenew-<date yyyy-mm-dd>-$name");
works fine here...

Re: Rename script does not work in last version

Posted: 02 Sep 2021 14:50
by lian00
Thanks @highend, your simplified code works nicely.