Search found 5 matches

by Spellman
25 Oct 2010 04:24
Forum: DOS Batch Forum
Topic: Need help with script from this site
Replies: 7
Views: 7905

Re: Need help with script from this site

I do appreciate the help amel27 While I do fully plan on writing this in a few other languages, I'd like to finish the batch version before I move on to a vbscript/jscript. I've run into a new issue. I figured (I think) what I was doing wrong and got it to work. HOWEVER, when I do controlled test ru...
by Spellman
22 Sep 2010 04:14
Forum: DOS Batch Forum
Topic: Need help with script from this site
Replies: 7
Views: 7905

Re: Need help with script from this site

Would like to use forfiles, however it's not on every server. The script will need to run on WinNT, 2000, 2003, 2008. Obviously, have to make it for the weakest link :(
by Spellman
20 Sep 2010 19:58
Forum: DOS Batch Forum
Topic: Need help with script from this site
Replies: 7
Views: 7905

Re: Need help with script from this site

While I'm sure both work well, it's outside the scope of this project. If I can get this part of the batch script to work correctly, it'll be added to a much larger batch file that does cleaning on servers.
by Spellman
15 Sep 2010 19:25
Forum: DOS Batch Forum
Topic: Need help with script from this site
Replies: 7
Views: 7905

Need help with script from this site

I'm having an issue getting 2 scripts featured on this site to work. I know I'm missing something simple. The 2 I'm trying to use are the top 2 @ http://www.dostips.com/DtTipsDateTime.php

I want the batch file to figure out the date, then delete anything in that directory thats 180 days or over.

Any help would be appreciated.
by Spellman
15 Sep 2010 19:16
Forum: DOS Batch Forum
Topic: Batch variable containing date mmddyyyy to convert to yymmdd
Replies: 4
Views: 6976

Re: Batch variable containing date mmddyyyy to convert to yy

While this may be solved, I thought I'd put my input in as well. set mm=%date:~4,2% set dd=%date:~7,2% set yy=%date:~12,2% Then you have 2 options. If you want to use the variable often, then do: set date_=%mm%%dd%%yy%% (Obviously you can arrange them how you want) Or you can just echo it echo %mm%%...