rename script does not work anymore

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
lian00
Posts: 429
Joined: 09 Jul 2014 17:12

rename script does not work anymore

Post by lian00 »

Hello,
I used

Code: Select all

rename b, '*-new-name-<date yyyy-mm-dd>', ,,8; 
without problem and it does not work anymore in v.17 (nothing is happening).

Code: Select all

rename b, 'new-name-<date yyyy-mm-dd>', ,,8; 
works.
Windows 10 64 bits

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: rename script does not work anymore

Post by highend »

Works fine for me in current beta and v17 official...
One of my scripts helped you out? Please donate via Paypal

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

Re: rename script does not work anymore

Post by lian00 »

highend wrote:Works fine for me in current beta and v17 official...
OK, it works when I launch it directly but no more in a script launched by button - different entries (the other entries are working).
Windows 10 64 bits

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: rename script does not work anymore

Post by highend »

Then post the full script? oO

[Move to: Tips & Tricks, Questions & Answers]
One of my scripts helped you out? Please donate via Paypal

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

Re: rename script does not work anymore

Post by lian00 »

Code: Select all

"aller green"
	focus "P1";
	goto "E:\img-range\decale\2006-2008?lbl:green";
	$file = gettoken("<allitems |>", -1, "|");
	goto "E:\img-range\decale\2006-2008";
	selectitems "<curpath>\$file",, 1;//will select and focus somefile
"------------"	
"Renommer xz" 
 $name = input("Modifier le nom", "Nom", , [style=s], [cancel], [width=600], [height=400]); copytext "$name"; renameitem( "mm-<date yyyy-mm-dd>-<clipboard>", , ,);
"------------"	
"Rajouter date"
    rename b, '*-<date yyyy-mm-dd>', ,,8 ;
"Vince"
    rename b, 'vince-<date yyyy-mm-dd>', ,,8;
"Smilby"
    rename b, 'smilby-<date yyyy-mm-dd>', ,,8;
"Dink Siegel"
    rename b, 'siegel-<date yyyy-mm-dd>', ,,8;
"Wilson"
    rename b, 'wilson-<date yyyy-mm-dd>', ,,8;
"Buck Brown"
    rename b, 'buck-brown-<date yyyy-mm-dd>', ,,8;
"Otto Schmidt"
    rename b, 'otto-schmidt-<date yyyy-mm-dd>', ,,8;
"Dempsey"
    rename b, 'dempsey-<date yyyy-mm-dd>', ,,8; 
"Sokol"
    rename b, 'sokol-<date yyyy-mm-dd>', ,,8;
"feroumont-ero"
    rename b, '*-feroumont-ero-<date yyyy-mm-dd>', ,,8; 
"--------------"
"Recherche derniers secret"
	goto "E:\img-range\images-perso-xz\faits?*2015-01*"; 
	wait 300;
	button "viewthumbs";

"Recherche derniers normal"
	goto "E:\img-range\images-perso-xz\faits?*2012-07*"; 
	wait 500;
	button "viewthumbs";
"-------------"
"Creer alternative-xy"
	openwith "C:\Program Files\XnViewMP\xnviewmp.exe";
	wait 700;
	run "E:\Lian\vrac\scriptsautoit\retaille-xnview-4-5.exe";
The two entries with rename b, '*- do not work.
Windows 10 64 bits

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: rename script does not work anymore

Post by highend »

W 10 LTSB x64 RS1, XY 17.00.0200

Both *... renames from your script work fine...
One of my scripts helped you out? Please donate via Paypal

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

Re: rename script does not work anymore

Post by lian00 »

Very strange. I will try to recreate the list and test.
Windows 10 64 bits

Post Reply