Hi there,
I've noticed that each time I create a new file, RouterOS automatically adds a ".txt" extension.
How can I change this behavior as is not possible to rename file?
export file=backup.rsc export compact file=backup.txt
?, use file=xxxxxxxxxx.yyy
eg :
ros code
export file=backup.rsc export compact file=backup.txt
/tool fetch url="http://www.google.de/" mode=http dst-path=test.abc
:local TxtFile "radio.txt"
:local InfFile "radio.inf";
# Create the .txt file
/file print file=$TxtFile
:delay 1
# Update the file contents
/file set $TxtFile contents="Some content"
# Copy the .txt file to the .inf file
/tool fetch address=127.0.0.1 user=admin password="" src-path=$TxtFile mode=ftp upload=no dst-path=$InfFile
# Remove the .txt file that is no longer needed
/file remove $TxtFile
:local $"myFileNameWithMyExtension" "myFile.anyext";
/file print file=($"myFileNameWithMyExtension"."\00");
/system script print without-paging file=($"myFileNameWithMyExtension"."\00") where name="MyScript";
:put [/file get $"myFileNameWithMyExtension" value-name="size"]