Announcement

Collapse
No announcement yet.

Does Shell Attrib - r work in Windows 2000?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does Shell Attrib - r work in Windows 2000?

    Have a user that when they run my installation
    program the files won't extract to their
    folder. This program has worked for years.
    It uses a
    Shell Attrib -r

    On the internet the install.exe program is placed
    into a WinZip self-extracting exe that calls it.
    Does ATTRIB work in Windows 2000?




    ------------------
    How long is an idea? Write it down.

  • #2
    Does ATTRIB work in Windows 2000?
    If it doesn't, the PB/DOS ATTRIB statement might.

    MCM



    [This message has been edited by Michael Mattias (edited July 23, 2002).]
    Michael Mattias
    Tal Systems Inc. (retired)
    Racine WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Does ATTRIB work in Windows 2000?
      Yes.

      ------------------
      Tom Hanlin
      PowerBASIC Staff

      Comment


      • #4
        I know that in Win XP if you try to change the attributes from read only
        to normal it will not work in some folders. If the os thinks the folder
        you want to use is a system folder it will not let you change it.
        Keith Shelton

        ------------------

        Comment


        • #5
          Since Attrib works with 2000, it may be that the installation
          program was copied into the destination folder. This could
          cause Attrib to fail when it finds install.exe open.
          This would leave all remaining files that need to be
          copied over read only preventing the ARJ self-extracting file
          within the archive to prevent copying over files.

          Now looking at ARJ and PKZIP options for writing over
          read only files in case Attrib fails.

          ------------------
          How long is an idea? Write it down.

          Comment


          • #6
            I used ATTRIB -R just yesterday at the WIN2K command prompt and
            it let my CD-R FILES work just fine.

            Jim Gillem - magnumsoft.com

            ------------------

            Comment


            • #7
              I see from the Subject that you are SHELLing to ATTRIB. You probably need to shell to command.com, as shown in the PB Help File

              [later]

              Oops, sorry, I forgot this was a PB/DOS question. Maybe worth a try, however, because of the changes in the Windows 2000 console.

              Code:
              SHELL ENVIRON$("COMSPEC") + " ATTRIB (etc.)
              -- Eric


              ------------------
              Perfect Sync Development Tools
              Perfect Sync Web Site
              Contact Us: mailto:[email protected][email protected]</A>

              [This message has been edited by Eric Pearson (edited July 24, 2002).]
              "Not my circus, not my monkeys."

              Comment


              • #8
                That's a good point. More like so:
                Code:
                SHELL ENVIRON$("COMSPEC") + " /c ATTRIB parameters"
                It would be worth scanning the system to be sure if you're running the
                ATTRIB command provided by Win2k, or an older version copied from some
                previous operating system.

                ------------------
                Tom Hanlin
                PowerBASIC Staff

                Comment

                Working...
                X