|
function get-childitem () { $fi = new-object System.IO.FileInfo(“bogus.txt”) $fi .Attributes = [System.IO.FileAttributes]::Archive
|
|
The System.IO.FileAttributes class gives us access to file/directory attributes. In this article, we'll see how to use the class to first read the current attributes and then ...
|
|
The System.IO.FileAttributes class gives us access to file/directory attributes. In this article, we'll see how to use this class to first read the current attributes and then ...
|
|
System.IO.FileAttributes objfileAttributes ; lngAttributes = System.IO.File.GetAttributes(txtSource.Text); After you have the flags in the variable, by & ing the variable with ...
|
|
When hovering over a variable with a flags type enum such as the following System.IO.FileAttributes a = System.IO.FileAttributes.Archive | System.IO.FileAttributes.Compressed ...
|
|
Provides attributes for files and directories. This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
|
|
ZipForge1.AddFiles( "*.*" , System.IO.FileAttributes.Archive Or System.IO.FileAttributes.Normal Or System.IO.FileAttributes.Directory, "*.txt" ) ' Set path to destination folder
|