- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Adding date to a filename
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 10:27 AM
тАО01-05-2004 10:27 AM
copy file.bat file.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 03:57 PM
тАО01-05-2004 03:57 PM
Re: Adding date to a filename
Try using the XSET utility from http://xset.tripod.com
rem DATEFILE.bat
rem Makes a Text File with the Current Date as the Name
C:\BATCH\DOS\XSET CUR-DATE DATE YY-MM-DD
REM > %CUR-DATE%.TXT
This will make a zero-byte file which name will be in the format
of "Year-Month-Day". That keeps similar files in chronological order.
You may then load it into an editor and add text.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 04:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 06:01 PM
тАО01-05-2004 06:01 PM
Re: Adding date to a filename
copy file.bat file.%date:~0,2%%date:~3,2%%date:~6,4%.bat
Thanks.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 06:18 PM
тАО01-05-2004 06:18 PM
Re: Adding date to a filename
Not the NT/2000/XP command prompt, but under Win 98/95 (7.0) DOS or 6.22 MS-DOS?
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 06:24 PM
тАО01-05-2004 06:24 PM
Re: Adding date to a filename
Let us know what DOS version or OS you REALLY want to work this in.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2004 11:14 AM
тАО01-06-2004 11:14 AM
Re: Adding date to a filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 04:04 PM
тАО01-07-2004 04:04 PM
Re: Adding date to a filename
I am glad my solution worked for you.
Apart from appreciation, your libral allocation of points to my answer will help me inch towards my first cap.
Thanks.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2008 01:50 AM
тАО02-28-2008 01:50 AM
Re: Adding date to a filename
(fileddmmyyyyhh24miss)
any help would be appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2008 01:07 PM
тАО02-28-2008 01:07 PM
Re: Adding date to a filename
Jon