ETO - I believe I have found a fix for all the batch files
Contribute Now
Goal amount for this year: 10000 USD, Received: 5,605.00 USD (56%)
Welcome Back, Unregistered     Today's Date:       Current Time: 

Please Support the SOH "2020 Charter Membership Drive"




Accepted Payment Types

Results 1 to 4 of 4

Thread: ETO - I believe I have found a fix for all the batch files

  1. #1

    ETO - I believe I have found a fix for all the batch files

    I am at work and while haven't tested I already believe this is the solution.

    When you run a batch file as administrator under windows vista and above the current directory gets set to C:\windows\system32. This can prevent your scripts from working correctly if you use relative paths.

    Note - if UAC is on.

    To fix this problem, include these two lines at the top of your .bat script for each BAT file.

    @setlocal enableextensions
    @cd /d "%~dp0"

    references:
    https://www.codeproject.com/Tips/119...Correcting-cur
    https://stackoverflow.com/questions/...669636#8669636

    Examples of issues (if you don't do this, should also have trouble changing eras et al):
    http://www.sim-outhouse.com/sohforums/showthread.php/118327-Error-message-quot-h75a3-quot-after-reinstalling-ETO
    http://www.sim-outhouse.com/sohforums/showthread.php/66446-Installation-guides-for-ETO-and-Rising-Sun/page3


    Now to get on to test the wonderful Arado 234 and Focke Wulf 190 and others here


    Last edited by P38man; February 11th, 2020 at 17:29.

  2. #2
    This works for me. Nice find P38man! I was always having to run a regedit file I made to turn UAC on and off. Great to be able to switch eras easily now. Thanks!

  3. #3
    Awesome!

    =========posted in other thread but putting here as well ===================

    There is actually more complexity here which is why there is such a variance in behaviour.

    Additionally:
    - depends upon running as admin
    - depends on your notify UAC setting upon changes.
    - depends upon your current windows explorer directory

    Reference for this additional:
    https://stackoverflow.com/questions/...rrent-director

    Therefore I recommend everyone make the 2 line changes

  4. #4
    Much obliged!
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7

Members who have read this thread: 42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •