The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
.
google unix.com



Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Windows command shell equivalent in Unix simonsimon Shell Programming and Scripting 10 04-30-2009 01:56 AM
command that is equivalent to TOPAZ in IBM. oracle_rajesh_k HP-UX 2 11-15-2008 06:03 PM
Intel Unveils Seven New Intel(R) Itanium(R) Processors - WELT ONLINE iBot UNIX and Linux RSS News 0 11-01-2007 07:30 PM
Equivalent command for setlocal in Unix sonaluphale UNIX for Advanced & Expert Users 7 05-17-2007 07:10 AM
Equivalent unix command to minimize/maximize xterm window icemocha75 UNIX for Dummies Questions & Answers 0 01-27-2006 01:15 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-16-2009
MizzGail's Avatar
MizzGail MizzGail is offline
Registered User
  
 

Join Date: Sep 2001
Location: Syracuse, NY
Posts: 164
dos/intel unix command equivalent

In Unix I can use command line to do a find for files older than so many days and remove them. I can also capture the date to see if its a saturday and do something different. Are there any dos/intel command line equivalent commands to do this on a windows 2003 server? This is from an application admin perspective, I do not have admin rights on the server.
  #2 (permalink)  
Old 09-16-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
in Powershell - supported by Windows 2003 server you can try things like this:
Code:
get-childitem –recurse | where-object {$_.lastwritetime -gt “8/13/2009”}
To find our all the files in the target directory modified in the last 30 days:

Code:
$DtToCompare = (Get-date).AddDays(-30)

Get-Childitem –recurse | where-object {$_.lastwritetime –gt $DtToCompare}
  #3 (permalink)  
Old 09-16-2009
MizzGail's Avatar
MizzGail MizzGail is offline
Registered User
  
 

Join Date: Sep 2001
Location: Syracuse, NY
Posts: 164
Thanks! I will also go find more information on powershell.
  #4 (permalink)  
Old 4 Weeks Ago
jgt jgt is offline
Registered User
  
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 439
You could also try Microsoft SFU (services for unix) which is the C-Shell and Korn Shell, and most of the basic unix utilities.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0