Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Subject: Batch file Date

Original Message
Name: hoffmann2002
Date: May 9, 2008 at 10:27:54 Pacific
Subject: Batch file Date
OS: xp
CPU/Ram: 504mb of ram
Model/Manufacturer: HP
Comment:
I am new to batch files and command line, but I need one that will tell me the day in three letters.
Right now I have:
set _day= %DATE%
echo _date_day = %_day%

But that tells me: DDD 00/00/000
What should i do so i get rid of the 00/00/0000????


Report Offensive Message For Removal

Response Number 1
Name: IVO
Date: May 9, 2008 at 12:34:25 Pacific
Subject: Batch file Date
Reply: (edit)
set _day=%DATE:~0,3%
echo _date_day = %_day%

Beware under XP home there is no day of week in the DATE variable.


Report Offensive Follow Up For Removal

Response Number 2
Name: Mechanix2Go
Date: May 10, 2008 at 00:58:39 Pacific
Subject: Batch file Date
Reply: (edit)
No use guessing. Do this and post output:

echo %date%


=====================================
If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Batch file Date

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software



Version Tracker Pro
Keep your software current and secure, effortlessly

Click Here for a Free Scan

Driver Agent
Automatically find the latest drivers for your computer.
Click Here for a Free Scan



The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC