Skip to content
toggle menu
GSA SEO Forum
GSA SEO Forum
Categories
Mark All Viewed
GSA
Manuals
Donate
Categories
Mark All Viewed
GSA
Manuals
Donate BTC
Donate PayPal
Sign In
Register
Sign In
·
Register
×
Home
›
GSA Search Engine Ranker
›
Need Help
write_file current dir
andrzejek
Polska
July 2019
in
Need Help
This works:
post data=%file-./_directory/test.xml%
This does not:
write file="./_directory/file.txt" "%targeturl%\n"
Comments
Sven
www.GSA-Online.de
July 2019
./ is unix syntax... you probably mean .\ ... I am correcting that in some macros but not all.
andrzejek
Polska
July 2019
I tried with .\ and it is not working. The unix syntax is fine i never had any problems in programming or so using "./" in windows.
Sven
www.GSA-Online.de
July 2019
I will fix/replace that on next update as well.
andrzejek
Polska
July 2019
edited July 2019
not working, ser opened as ADMIN
Sven
www.GSA-Online.de
July 2019
edited July 2019
ok but does _directory exists in the c:\users\<login>\appdata\roaming\gsa search engine ranker\ folder? Because thats the default one.
andrzejek
Polska
July 2019
hmmm if thats default for write file it does not work
write file="./x.txt" "%y%|%url_target%|\n"
.. can we change the default folder? i want to keep them in the engines folder to have all in sync
Sven
www.GSA-Online.de
July 2019
you can add the \engine\ in path
andrzejek
Polska
July 2019
edited July 2019
can you show full example? i guess u mean full path to the engines foldeR?
Sven
www.GSA-Online.de
July 2019
either that or just
write_file ".\engines\blah.txt" "content"
andrzejek
Polska
July 2019
edited July 2019
I meant Engines folder where SER takes engine.ini ^^ but w/e thanks i figured it out
Sven
www.GSA-Online.de
July 2019
that is only accessible by admin right so better not write there at all...but the appdata folder can also hold engine files.
andrzejek
Polska
July 2019
edited July 2019
Oh i didnt know that, but what folder have priority then?
Edit: there are 2 engines visible (both from app and program files)
Sven
www.GSA-Online.de
July 2019
the one in installation folder is default.
andrzejek
Polska
July 2019
Can we change the default so SER updates wont override anything?
Sven
www.GSA-Online.de
July 2019
it should always append it!?
andrzejek
Polska
July 2019
append it where?
Sven
www.GSA-Online.de
July 2019
to the end of the same file name
andrzejek
Polska
July 2019
I am talking about engines mostly, for ex. if i delete some built-in engines i would like to keep that after update.
Sven
www.GSA-Online.de
July 2019
you better put in that "enabled=0" ... that way it is not overwritten as the engine itself is newer than the one in setup.
andrzejek
Polska
July 2019
What is the best way to handle modified built in engines (so they wont be overriden by updates) ?
Sven
www.GSA-Online.de
July 2019
put them in the appdata-folder\engines
andrzejek
Polska
July 2019
Yes, but then there are 2 engines visible in Project Settings, one from appdata and one from programfiles.
Sven
www.GSA-Online.de
August 2019
fixed in next update
andrzejek
Polska
August 2019
What is the currect behaviour ?
Sven
www.GSA-Online.de
August 2019
as the update is out, it is now taking the appdata engine first and then the one in installation folder (if not dupe).
andrzejek
Polska
August 2019
What does it mean, "if not dupe" its not clear.
Sven
www.GSA-Online.de
August 2019
if you have the same file name in both folders, it is using the one in appdir and skips the one from original folder.
Sign In
or
Register
to comment.
Comments
.. can we change the default folder? i want to keep them in the engines folder to have all in sync
Edit: there are 2 engines visible (both from app and program files)