Announcement

Collapse
No announcement yet.

Does Shell Attrib - r work in Windows 2000?

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

  • Tom Hanlin
    replied
    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

    Leave a comment:


  • Eric Pearson
    replied
    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).]

    Leave a comment:


  • Guest's Avatar
    Guest replied
    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

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

    Leave a comment:


  • Mike Doty
    replied
    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.

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

    Leave a comment:


  • keith shelton
    replied
    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

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

    Leave a comment:


  • Tom Hanlin
    replied
    Does ATTRIB work in Windows 2000?
    Yes.

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

    Leave a comment:


  • Michael Mattias
    replied
    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).]

    Leave a comment:


  • Mike Doty
    started a topic Does Shell Attrib - r work in Windows 2000?

    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?




    ------------------
Working...
X