Jump to content

MrSheen

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by MrSheen

  1. Hello I'm using this for XP $szFile = @UserProfileDir & "\Local Settings\Application Data\DVDShrink\Settings.ini" $szText = FileRead($szFile,FileGetSize($szFile)) $szText = StringReplace($szText, "", "") $szText = StringReplace($szText, "", "") FileDelete($szFile) FileWrite($szFile,$szText) Also tried %systemdrive%\Documents and Settings\%username%\Local Settings\Application Data\DVDShrink\Settings.ini However for Vista and 7, both do not work and I have no idea what the 7/Vista equivalent is. Can someone please Advice? Mr Sheen
  2. Tried the second one and it still uses the system appdata folder, tried a simple batch with "Set APPDATA = F:\storage" and that also never redirected anything.
  3. Thank you for your help. Nope it does not work, tried it on a five games and two program and still ends up saving in to the appdata folder.
  4. Redirecting appdata, I dont know if redirecting is the right word to use, however a few games and programs stick a folder with a single file into appdata. Which I was wondering can you actually run say WinRar, Lemmings etc and have it redirect what the program is sending to appdata into the current folder? I know you can use DirMove and DirRemove to copy them back and fourth but would like to know if there is a way to have windows believe the current folder is actually the appdata folder while running the game/program.
  5. The last three are great, thank you guys for your assistance.
  6. Replaced 1=1 to ProcessExists("InstallRite.exe") and script was still running after installrite was close, so tried the other one you posted but again script does not close when installrite.exe closes.
  7. The program asks "do you want to delete?" all the time (so much, they should have had a option to turn that annoying box off), so that script works very well for that purpose but just cant get it to close when the program finishes being used. Thanks for replying
  8. Hello I've been using the below script to always answer a pop-up box, just cant seem to get it to terminate as soon as program (installrite.exe) closes. Run("C:\Program Files\Epsilon Squared\InstallRite\InstallRite.exe") If $CmdLine[0] = 1 and $CmdLine[1] = '/QUIT' Then WinClose('InstallRite') Else AutoItWinSetTitle('InstallRite') While 1=1 WinWait("InstallRite 2.5c","Are you sure you wan") Send("{ENTER}") WEnd EndIf Tried to include (If ProcessExists),(If ProcessWaitClose),(If WinExists) and Sleep etc but the script does not terminate when the program is closed. Any pointers would be appreciated. Thanks
×
×
  • Create New...