- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Add date and time to a file name
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
тАО09-18-2006 10:54 PM - last edited on тАО11-03-2013 08:47 PM by Maiko-I
тАО09-18-2006 10:54 PM - last edited on тАО11-03-2013 08:47 PM by Maiko-I
Add date and time to a file name
Could someone please let me know how I can add the date and time to a file name so that it makes it unique...easy in unix but do not seem to be able to do it in Windows.
I already have a vbs that adds the date but I now also need the time.
I include the script that may help someone that knows this well to just add the missing 'bits'.
thanks
kyris
P.S. This thread has been moved from Archived Desktops and Workstations Boards > Windows based to Microsoft > general. - Hp forum moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 01:18 PM
тАО09-20-2006 01:18 PM
Re: Add date and time to a file name
I'm certain that this has come up in the forums before, about a year ago or so.
Go to the Forums advanced search link at the top of this page, and search in both ITRC and Business Support forums.
Pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 06:20 PM
тАО09-20-2006 06:20 PM
Re: Add date and time to a file name
Thanks for your reply..I appreciate it. I had a quick look but could not find anything but I will have a more thorough look later on using various criteria in the search.
thanks kyris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 12:53 AM
тАО11-07-2006 12:53 AM
Re: Add date and time to a file name
set YYYYMMDD=%DATE:~10,4%%DATE:~7,2%%DATE:~4,2%
type c:\reports\myreport.txt >> c:\reports\myreport_%YYYYMMDD%.txt