Rename mode not invoked !?

Discuss and share scripts and script files...
Post Reply
genieautravail
Posts: 52
Joined: 26 Oct 2011 21:25
Location: France

Rename mode not invoked !?

Post by genieautravail »

Hello everybody,

It's my first post on this forum and I have a question about scripting. :P
I use XYExplorer 10.40 and I have added two buttons in the toolbar for created a new text file and a new folder with scripts.
Here the very simple scripts :

1st button :
new("Nouveau Fichier Texte.txt", "r");

2nd button :
new("Nouveau Dossier", "dir", "r");

With these scripts the text file or the folder are created but the rename mode is not invoked dispite the parameter "r" (I'm working in the current path only).

Why ? :roll:

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Rename mode not invoked !?

Post by Stefan »

Hi and welcome.

genieautravail wrote:Hello everybody,

It's my first post on this forum and I have a question about scripting. :P
I use XYExplorer 10.40 and I have added two buttons in the toolbar for created a new text file and a new folder with scripts.
Here the very simple scripts :

1st button :
new("Nouveau Fichier Texte.txt", "r");

2nd button :
new("Nouveau Dossier", "dir", "r");

With these scripts the text file or the folder are created but the rename mode is not invoked dispite the parameter "r" (I'm working in the current path only).

Why ? :roll:

The syntax for new() is

new(name, [type=file|dir], [source], [rename=|r])

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

Re: Rename mode not invoked !?

Post by highend »

new(name, [type=file|dir], [source], [rename=|r])
In other words:

new("Nouveau Fichier Texte.txt", , ,"r");

new("Nouveau Dossier", "dir", ,"r");
One of my scripts helped you out? Please donate via Paypal

genieautravail
Posts: 52
Joined: 26 Oct 2011 21:25
Location: France

Re: Rename mode not invoked !?

Post by genieautravail »

I understand now...

Thank you very much Stefan and Highend ! :mrgreen:

Post Reply