Galforetress Posted July 19, 2013 Posted July 19, 2013 When I activate the Make_rewrite_work2 file, it comes up with an error that says "cannot import rewrite_modif.reg: Error opening the file. There may be a disk or file system error." So I used the magic of google and several threads have already been made about this problem. I can't quite figure out how to fix it, as when I clicked "Edit" on that file, the notepad said this: --------------------------------------------------------------- @echo off set MATCH=_PATH_ set REPLACE=%CD% set regfile=rewrite.reg IF NOT EXIST C:\Windows\SysWOW64 set regfile=rewrite32.reg set REPLACE=%REPLACE:\=\\% if exist rewrite_modif.reg del rewrite_modif.reg for /f "tokens=1,* delims=]" %%A in ('"type %regfile%|find /n /v """') do ( set line=%%B if defined line ( call set "line=%%line:%MATCH%=%REPLACE%%%" call echo %%line%% >> rewrite_modif.reg ) ) regedit rewrite_modif.reg if exist rewrite_modif.reg del rewrite_modif.reg SiglusEngine.exe exit --------------------------------------------------------------------------- Which doesn't match any other problems anyone was having, to my knowledge. Can someone help me out? I have no idea how script like this works, so I need step by step instructions on how to fix this, if they can be givien. My system is 64-bit, and is a Toshiba Satellite Laptop. I do not think the hardware itself is the problem. Thanks.
Luch Posted July 19, 2013 Posted July 19, 2013 You can: 1. edit rewrite.reg and replace the _PATH_ in exe_dir and dat_dir with the path to your rewrite folder (use double \\) and then run that file. Example: "exe_dir"="H:\\Completed\\Fuwanovel\\[Fuwanovel] Rewrite" or 2. Try with this bat. Galforetress and Kaguya 2
Galforetress Posted July 20, 2013 Author Posted July 20, 2013 :l Part of me wants to worship you, and the other part wants to punch you for making it look so easy. I mean seriously, I just read your post, downloaded that file, and within 30 seconds of seeing your response, Rewrite was on the title screen. Thanks a lot. You get my gratitude.
Kendjin Posted July 20, 2013 Posted July 20, 2013 :l Part of me wants to worship you, and the other part wants to punch you for making it look so easy. I mean seriously, I just read your post, downloaded that file, and within 30 seconds of seeing your response, Rewrite was on the title screen. Thanks a lot. You get my gratitude. I think it was Luch that wrote the first bat?
REtransInternational Posted July 20, 2013 Posted July 20, 2013 IF NOT EXIST C:\Windows\SysWOW64 To whoever wrote that: Do not depend on Windows being installed in that directory, or even that drive. Use the appropriate environment variables instead.
Luch Posted July 20, 2013 Posted July 20, 2013 I think it was Luch that wrote the first bat? The one shipped with Rewrite is written by darkpheonix (no idea what is causing the problem as it works fine for me). I did write the other one though it was originally aimed for windows 8 users.
Luch Posted July 21, 2013 Posted July 21, 2013 Problem solved, thread locked. Anyone has more trouble, pm a mod to re-open this.
Recommended Posts