Jump to content

Reno Rowlands

Resident
  • Posts

    14
  • Joined

  • Last visited

Posts posted by Reno Rowlands

  1. Also, whenever possible, to make sure the batch file works on a variety of environments make sure to use environment variables instead of hard coded paths. For example, on Vista and Windows 7, "Documents and Settings" is called C:\Users and the folder structure is different.

    So instead of referencing "C:\Documents and Settings\Username\Application Data", you should use "%APPDATA%\SecondLife\Settings.xml" or whatever. Type "set" at a command prompt to see the available environment variables.

  2. The copying is not a bad idea. From the batch file, when you call another process, the batch file will normally continue. You can use the START command with the /WAIT parameter like so:

    START "Second Life" /WAIT "Blah\SecondLife.exe" --settings Blah.xml

    The start command will block until the SecondLife.exe process exits, then continue on to the next line, allowing you to copy back to the Flash drive.

  3. One thing you could do if you run Vista or Windows 7 is to use symbolic links. It's fairly easy (depending on your comfort level with command prompts and such) to set this up but you'd need to do it on each computer on which you ran the client.

    Assume your flash drive letter is F and your Windows login name is Josh.

    First, create a folder F:\SecondLife.

    Then, *move* the folder C:\Users\Josh\AppData\Roaming\SecondLife to F:\SecondLife and rename it "Data".

    Then, *move* the folder C:\Program Files\SecondLife and rename it "Bin".

    Next, open a command prompt as an administrator (cmd.exe, PowerShell will not work for this) and type:

    MKLINK /D "C:\Users\Josh\AppData\Roaming\SecondLife" "F:\SecondLife\Data"
    MKLINK /D "C:\Program Files\SecondLife" "F:\SecondLife\Bin"

    Now, Second Life can go on happily writing files to the locations it thinks it installed to, but really it is redirected to the flash drive.

    • Like 1
×
×
  • Create New...