Re: SecEdit INF format

From: Roger Abell [MVP] (mvpNoSpam_at_asu.edu)
Date: 01/13/05

  • Next message: Jeff Allen: "Re: Audit of specific file(s) being printed"
    Date: Thu, 13 Jan 2005 09:32:48 -0700
    
    

    "EdT" <etippelt@gmail.com> wrote in message
    news:1105521861.129366.39410@z14g2000cwz.googlegroups.com...
    > Thanks Roger.
    > I am a relative newbie in the area of vbscripting. How can I test if
    > the file is an ASCII or a Unicode file in vbscript? Our INF files can
    > come in both flavours although I am trying to get things standardised
    > to ASCII.
    No real clue, but if you open as ASCII and it is not then you do
    not have ability to readlines correctly - no doubt you can evolve
    a simple test.

    Const ForRead = 1
    Const ForWrite = 2
    Const OverwriteIfExist = -1
    Const OpenAsASCII = 0
    Const OpenAsDefault = -2
    Const FilePreserve = False
    sInFile = " . . . spec . . . "

    Set oInFile = oFso.OpenTextFile(sInFile,ForRead,FilePreserve,OpenAsDefault)

    Handles the file for you whether ASCII or Unicode

    > We are trying to automate a lot of our packaging workflows, and as well
    > have a number of different domains serving our 30,000 users, we have
    > had to automate the creation of the security INF file and also automate
    > the update of the SIDS in the INF file as packages are deployed to
    > different domains.
    I find I can write SCE template files without regard to whether they
    result in ASCII or Unicode and they can still be used. The sceregvl.inf
    however I always leave as Unicode.

    > It would be helpful if you could confirm whether the [Unicode] section
    > can be dropped from an ASCII file, or whether it should be set to
    > Unicode = No
    > Is this documented anywhere? I have searched through the Platform SDK
    > and DDK documentation without finding anything conclusive
    >
    I have never seen this doc'd, never looked for it, and never seen
    this set to anything else.

    -- 
    Roger Abell
    Microsoft MVP (Windows Server System: Security)
    MCDBA,  MCSE W2k3+W2k+Nt4
    

  • Next message: Jeff Allen: "Re: Audit of specific file(s) being printed"

    Relevant Pages

    • Re: SecEdit INF format
      ... I am a relative newbie in the area of vbscripting. ... the file is an ASCII or a Unicode file in vbscript? ... We are trying to automate a lot of our packaging workflows, ... It would be helpful if you could confirm whether the [Unicode] section ...
      (microsoft.public.win2000.security)
    • Re: Whats the syntax for a "char" constant? How about an hex integer?
      ... > How do I enter a char constant using the char's ASCII number? ... const char CR = 13; ... Fortunately all ASCII characters have the same value in Unicode. ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: CFile::Read problem ???
      ... As far as the C compiler is concerned, ... you can pretty much always assign a char ... as ASCII and wchar_t as Unicode. ...
      (microsoft.public.windowsce.embedded.vc)
    • Re: Opening a text file that may be ASCII *or* Unicode
      ... It could well be ASCII empty -- no bytes.) ... UTF & BOM ... Positively Must Know About Unicode and Character Sets ... > regards, Andy ...
      (microsoft.public.scripting.vbscript)
    • Re: Cross-platform e-mail text size problems
      ... ASCII is mentioned mostly as historical reference. ... It says that "plain text" used to require ASCII (and never one of the 'high ascii' variants we were stuck with before Unicode) and goes on to explain how Unicode is replacing ASCII in plain text. ... If you define "plain text" as "lowest common denomiator", I suppose you could say that it has indeed been upgraded from ASCII to Unicode, thanks to Unicode having become ubiquitous enough to be considered a "low enough common denominator". ...
      (comp.sys.mac.apps)