Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How to do this on Visual Basic?

Batch:

Attrib -s -h "folder name"

2 Answers

Relevance
  • Jeremy
    Lv 6
    5 years ago

    If you don't want to invoke the command line from your program:

    Dim di As New IO.DirectoryInfo("C:\test\")

    di.Attributes = di.Attributes And Not FileAttributes.Hidden And Not FileAttributes.System

  • Anonymous
    5 years ago

    Process.Start("Attrib.exe", "-s -h \"folder name\"")

Still have questions? Get your answers by asking now.