iycgtptyarvg wrote:I'm clearly doing something wrong, but I don't know what.
No, i just didn't provide you an valid script, but just an idea. Sorry for that
You have to know how an script have to be formated:
see Help > Advanced Topics > Scripting > Syntax rules for XYplorer Script Files
* only the very first line of an script must start at pos1,
all other lines of an script are indented by at least one space and start at pos2 or more.
IF this first line is just an description/header between quotes "" then you get an popup menu with one single item to start the script.
IF the first line is not quoted but the first command then the script just starts without any prompt.
* an script
file (may) contain several scripts with several lines starting at pos1 (one for each script)
and so provide you an popup menu to select one of this scripts inside.
Furthermore my script is untested since i didn't need such an script, but should work as far as i see.
Here is your script well formated:
Code: Select all
"Backup Drive Structure"
goto "C:";
#263; //List all items the current branch
writefile("E:\C Drive Structure.txt",
report("{fullname}<tab>{dir |{size RAW}<tab>{modified yyyy-mm-dd hh:mm:ss}|}<crlf>"));
goto "D:";
#263; //List all items the current branch
writefile("E:\D Drive Structure.txt",
report("{fullname}<tab>{dir |{size RAW}<tab>{modified yyyy-mm-dd hh:mm:ss}|}<crlf>"));
goto "E:";
#263; //List all items the current branch
writefile("E:\E Drive Structure.txt",
report("{fullname}<tab>{dir |{size RAW}<tab>{modified yyyy-mm-dd hh:mm:ss}|}<crlf>"));