Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Window folder or WinNT Folder

  1. #1

    Default Window folder or WinNT Folder

    What variable do I use to find an ini file placed in the system folder,
    either the windows folder or winNT folder

    Would this %SYSDIR% ?


    --
    Dan Scott
    C55 C6.3 C7.1 LEGACY
    www.garagepartner.com

  2. #2

    Default Re: Window folder or WinNT Folder

    Dan,

    > What variable do I use to find an ini file placed in the system folder,
    > either the windows folder or winNT folder
    >
    > Would this %SYSDIR% ?

    I assume you would like to access the "System32" folder, right? If this is
    the case, use %SYS32DIR%

    If you would like to access the "Windows" folder, use %WINDIR%

    Does this help?

    --
    Friedrich Linder
    Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    SetupBuilder is Windows 7 installation -- "point. click. ship"

    -- Official Comodo Code Signing and SSL Certificate Partner

  3. #3

    Default Re: Window folder or WinNT Folder

    Hi Friedrich

    I have always used the %WINDIR%
    On an install 2 days ago, on a 2008 server
    My ini files were located in the WINNT folder, no Windows folder was there.

    I seemed to not find my ini files using %WINDIR%

    I had to create a Windows folder and stick the ini's in it to get the
    install to find the proper folders.

    Does that make sense?

    --
    Dan Scott
    C55 C6.3 C7.1 LEGACY
    www.garagepartner.com

  4. #4

    Default Re: Window folder or WinNT Folder

    For years, all versions of Windows NT installed into C:\WINNT, not into
    Windows. (My old W2K laptop has its OS in WINNT).

    Perhaps the guy who installed that server is old enough that he's still in
    that habit.

    What do you gain by creating your own "Windows" folder when the entire
    server is using WINNT?

    jf

  5. #5

    Default Re: Window folder or WinNT Folder

    Jane,

    > What do you gain by creating your own "Windows" folder when the entire
    > server is using WINNT?

    It sounds like Dan is using hard paths for his INI files.


    Dan,

    If you are using hard paths - especially to any "Windows" folder the
    short, polite, answer is DON'T EVER, EVER, EVER DO THIS - EVER!<g>

    Sadly, if you don't provide a path to Clarion then calls to GETINI and
    PUTINI will default to the Windows folder - whatever folder that is on
    any given machine.

    Are these INI files written during install and only read or are they
    read and write from your program?

    --
    Lee White

    Enroll Today at http://CWaddons.com

    Reports....: http://www.cwaddons.com/products/rpm/
    Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
    Faxing.....: http://www.cwaddons.com/products/afe/

  6. #6

    Default Re: Window folder or WinNT Folder

    Lee

    Now stop blaming me for everything... <g>

    I am replacing some C55 apps that were installed years ago and not by me
    I might add. But the upgrade does use the old data, so I need to find
    out where it is located so I can complete the install.

    All the other locations had the INI file in c:\Windows. (see my note to
    Jane)

    BTW, this has been my worst week in the computer business...7 18hr days
    in a row with hardly anything going right. So watch out buddy <g>

    Dan

    --
    Dan Scott
    C55 C6.3 C7.1 LEGACY
    www.garagepartner.com

  7. #7

    Default Re: Window folder or WinNT Folder

    Dan,

    > Now stop blaming me for everything... <g>

    Not everything, no!<g>

    > All the other locations had the INI file in c:\Windows. (see my note to
    > Jane)

    In SB there are predefined variables %WINDIR% contains the path to the
    Windows folder regardless of the actual folder name.

    Checkout "Predefined Runtime Variables" in the help.

    > BTW, this has been my worst week in the computer business...7 18hr days
    > in a row with hardly anything going right. So watch out buddy <g>

    Consider me watching out!<g>

    --
    Lee White

    Enroll Today at http://CWaddons.com

    Reports....: http://www.cwaddons.com/products/rpm/
    Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
    Faxing.....: http://www.cwaddons.com/products/afe/

  8. #8

    Default Re: Window folder or WinNT Folder

    Jane,

    Maybe I didn't make myself clear

    I went to install a customer Remotely

    The install never completed because it relied on finding an INI file
    in the %WINDIR% -

    I ended up creating a windows folder just to get thru the install so the
    guy could open for business.

    I guess my question is

    In C55 if you DID NOT specify an INI location, it went to the windows
    folder, or Winnt if that was the system folder...

    The installs I doing are upgrading old C55 apps over to 6.3(God Help me)

    So I want to know how I can find the INI file placed by the Clarion C55 app

    Dan

    --
    Dan Scott
    C55 C6.3 C7.1 LEGACY
    www.garagepartner.com

  9. #9

    Default Re: Window folder or WinNT Folder

    Dan,

    There is only one valid Windows folder. And that's the folder returned by
    the GetWindowsDirectory Windows API ;-)

    BTW, if you do not define a INI file in the PUTINI Clarion command, it
    places the entry in the WIN.INI file!

    If the filename parameter does not contain a full path and file name for the
    file, the Windows WritePrivateProfileString searches the Windows directory
    for the file. If the file does not exist, this function creates the file in
    the Windows directory.

    I assume the developer used a static Windows paths (e.g. C:\Windows) and
    forgot to make this dynamic. It's even possible that a standard Windows
    folder on, say, NT or Win2k is named c:\apple

    Friedrich

  10. #10

    Default Re: Window folder or WinNT Folder

    Or in the case of the W2K laptop I mentioned, it's on D:\WINNT (machine
    dual-boots 2 operating systems on different partitions)

    My 2K3 server is installed in E:\Windows.

    I never thought of putting it into c:\apples :-(

    jf

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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