Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
remove colon and space from time/t
Name: iamanogre Date: October 12, 2006 at 04:16:50 Pacific OS: dos 6.22 CPU/Ram: p 266
Comment:
I wish to use the time function as a folder name and I was wondering how can I remove the colon and the space from the output (e.g. --> 06:10 AM)
Name: iamanogre Date: October 12, 2006 at 06:06:44 Pacific
Reply:
Answered my own question
set hour=%time:~0,2% if "%hour:~0,1%"==" " set hour=0%time:~1,1% set folder=%date:~10,4%_%date:~4,2%_%date:~7,2% set subfolder=%hour%_%time:~3,2%_%time:~6,2% md c:\%subfolder%\
0
Response Number 2
Name: Mechanix2Go Date: October 12, 2006 at 20:45:29 Pacific
Reply:
Not in DOS 6.22
===================================== If at first you don't succeed, you're about average.
M2
0
Response Number 3
Name: iamanogre Date: October 13, 2006 at 09:08:11 Pacific
Reply:
found that out when I moved it to the target machines
using different idea now. Called a programmer he was done in 10 minutes and laughed in my general direction.
0
Response Number 4
Name: Mechanix2Go Date: October 13, 2006 at 23:47:02 Pacific
Reply:
Yeah, should be pretty simple for a real programmer. Might also get dome in BASIC or PERL.
===================================== If at first you don't succeed, you're about average.
Summary: HELLO: I HAVE A PROBLEM I NEED TO KNOW HOW CAN GET THE TIME AND DATE FROM A OLD FILE ,I WENT TO THE PROPERTIES OF THAT FILE AND IS THERE ALL WHAT I NEED ,THE PROBLEM IS THAT IS NOT ALLOW ME TO COPY AT...
Summary: In a DOS batch file I am renaming a file. The new name has to have the date and a time stamp to make it unique. I am using XSET to create a variable for the date (this works) The time does not work du...
Summary: SCSI is like EIDE at the FDISK level. You are out of luck with Microsoft utilities unless you can FDISK. Select FDISK (4) for information and see if you find something on the drive. Then try t...