|
-
Jun 10th, 2005, 03:11 AM
#1
Thread Starter
Frenzied Member
DOS Batch Files
Anyone remember these? I have this command that stores the date in a variable but I don't understand what exactly is going on. Can someone break it down into an idiots guide for me?
for /f %%i in ('date /t') do (set logdate=%%i)
Last edited by DeadEyes; Jun 10th, 2005 at 03:57 AM.
-
Jun 10th, 2005, 03:29 AM
#2
Addicted Member
Re: DOS Batch Files
hmm try windows help and support it has lots of batch commands
Nothing is Impossible you say?......Try slamming a revolving door!
-
Jun 10th, 2005, 03:45 AM
#3
Re: DOS Batch Files
Here is what ti means:
for: Runs a specified command for each file in a set of files.
set: Displays, sets, or removes Windows environment variables.
date: Displays or sets the date.
And I believe %%i is a variable and /f and /t are comand line switches for those parameters 
Cheers,
RyanJ
-
Jun 10th, 2005, 03:56 AM
#4
Thread Starter
Frenzied Member
Re: DOS Batch Files
thanks all
I'm such an moron; in DOS type help for
the /f means the the 'date /t' gets treated as one cmd/item instead of two
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|