[solved] Rename script does not work in last version

Discuss and share scripts and script files...
Post Reply
lian00
Posts: 354
Joined: 09 Jul 2014 17:12

[solved] Rename script does not work in last version

Post 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.
Last edited by lian00 on 02 Sep 2021 14:51, edited 1 time in total.
Windows 10 64 bits

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Rename script does not work in last version

Post by highend »

Can't reproduce,

Code: Select all

$name = input("Modifier le nom", "Nom"); renameitem("namenew-<date yyyy-mm-dd>-$name");
works fine here...
One of my scripts helped you out? Please donate via Paypal

lian00
Posts: 354
Joined: 09 Jul 2014 17:12

Re: Rename script does not work in last version

Post by lian00 »

Thanks @highend, your simplified code works nicely.
Windows 10 64 bits

Post Reply