![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #2 (permalink) |
| Guest | Re: file attributes dir c:\ | fl FullName,Attributes gives output like this FullName : C:\Program Files Attributes : ReadOnly, Directory FullName : C:\andy4.csv Attributes : Archive You can filter like this dir c:\ | where {$_.Attributes -contains "Archive"} and then pipe this to copy-item Andy Schneider On Feb 9, 8:38 am, kbz...@gmail.com wrote: > I want to make a script which copies files that their archive-bit is > marked. > How can I find file attributes in PowerShell? |
| | #3 (permalink) |
| Guest | Re: file attributes get-childitem | where{ $_.Mode -like "?a*"} would do the job -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty Blog: http://richardsiddaway.spaces.live.com/ PowerShell User Group: http://www.get-psuguk.org.uk "ASCHNEIDER146" wrote: > dir c:\ | fl FullName,Attributes > > gives output like this > > FullName : C:\Program Files > Attributes : ReadOnly, Directory > > FullName : C:\andy4.csv > Attributes : Archive > > You can filter like this > > dir c:\ | where {$_.Attributes -contains "Archive"} > > and then pipe this to copy-item > > Andy Schneider > > > > On Feb 9, 8:38 am, kbz...@gmail.com wrote: > > I want to make a script which copies files that their archive-bit is > > marked. > > How can I find file attributes in PowerShell? > > > |
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File attributes (getting/setting) and ownername | Jacob Saaby Nielsen | PowerShell | 3 | 06-03-2008 08:52 AM |
| File Attributes | Stuart Sabatini | Vista General | 2 | 05-17-2008 07:42 PM |
| File attributes in Vista | tedmi | Vista General | 3 | 04-15-2008 03:11 PM |
| Vista Ultx64 - File Owner Attributes - Raging! | jcuk | General Discussion | 0 | 03-19-2008 01:34 PM |
| How to get complete file attributes list on command line? | Roof Fiddler | Vista file management | 1 | 09-28-2006 01:31 AM |