content

» Script Library: AR Server Log Switcher

AR Server Log Switcher

This script switches ARS server logs by updating the AR System Administration: Server Information "vendor" table introduced with ARS 7.

It is very useful in development environments or when you need to automate log swiches.

Demonstrates

This simple script is a good one to begin with. It demonstrates a simple update to a single record (ID 000000000000001) in a form.

It also demonstrates regular expressions and conditionals in assignments.

Loading

The script will set the log file to the ARS Server path if no path information is supplied with the argument. It will also append ".log" if no extension is apecified.

You may want to review and change the default path and extention of the log file in [asg-Cfg] near the top of the file.

The form, "AR System Administration: Server Information" was introduced in ARS 7. This script therefor requires ARS 7 or higher to run successfully.

Running

Specify a log file with or without an extension and/or path. The script will add the prefix and extention as specified by the configuration section if needed.

 SthMupd.exe  SwLogs.ini  -p  my 
 SthMupd.exe  SwLogs.ini  -p  c:\mypath\my.log  
Challenge: hidden field values

More Information

These scripts will need to be edited to fit your requirements. They will also need Meta-Update installed and licensed to run.

Downloads

    Save the zip, expand in your samples or scripts directory. The zip file may contain different versions of the script and a tutorial document.

  • zip
  • Script Source