Search found 10 matches
- March 25th, 2013, 9:01 am
- Forum: Post-Processing Scripts
- Topic: Adding the date as "YYYY-MM-DD - " to the extracted folder
- Replies: 5
- Views: 8406
Re: Adding the date as "YYYY-MM-DD - " to the extracted fold
I was running the code with echo on to try and see what was wrong and found it was adding a space instead of a 0 when it was midnight...also added a ping in to create a 2 second pause in case there was permission locking. cd "%1" set name="%3" set name=%name:"=% echo %DATE% ...
- March 3rd, 2013, 4:21 pm
- Forum: General Help
- Topic: Help on a simple script to rename folders
- Replies: 10
- Views: 5346
Re: Help on a simple script to rename folders
I was running the code with echo on to try and see what was wrong and found it was adding a space instead of a 0 when it was midnight...also added a ping in to create a 2 second pause in case there was permission locking. cd "%1" set name="%3" set name=%name:"=% echo %DATE% ...
- March 1st, 2013, 7:10 pm
- Forum: General Help
- Topic: Help on a simple script to rename folders
- Replies: 10
- Views: 5346
Re: Help on a simple script to rename folders
Unfortunately it already is Shypike.....
- February 16th, 2013, 2:49 am
- Forum: General Help
- Topic: Help on a simple script to rename folders
- Replies: 10
- Views: 5346
Re: Help on a simple script to rename folders
Well....... I never quite got this to work, so I may as well bump it. It works on some folders, but not on others, and there doesn't seem to be any pattern as to why (ie similar non alpha-numeric characters) I'm thinking maybe windows may be locking the folder for thumbnail generation or something s...
- April 16th, 2012, 3:45 pm
- Forum: General Help
- Topic: Help on a simple script to rename folders
- Replies: 10
- Views: 5346
Re: Help on a simple script to rename folders
Cheers again for the help. Ended up changing it a bit and taking your advice :) @echo off cd %1 set name=%3 set name=%name:"=% echo %DATE% %TIME% for /F "tokens=1-3 delims=/" %%a in ("%DATE%") do set DAY=%%a& set MTH=%%b& set YR=%%c for /F "tokens=1-3 delims=:.&...
- April 16th, 2012, 3:43 pm
- Forum: Post-Processing Scripts
- Topic: Adding the date as "YYYY-MM-DD - " to the extracted folder
- Replies: 5
- Views: 8406
Re: Adding the date as "YYYY-MM-DD - " to the extracted fold
A little code cleanup... @echo off cd %1 set name=%3 set name=%name:"=% echo %DATE% %TIME% for /F "tokens=1-3 delims=/" %%a in ("%DATE%") do set DAY=%%a& set MTH=%%b& set YR=%%c for /F "tokens=1-3 delims=:." %%a in ("%TIME%") do set HR=%%a& se...
- April 1st, 2012, 3:40 pm
- Forum: Post-Processing Scripts
- Topic: Adding the date as "YYYY-MM-DD - " to the extracted folder
- Replies: 5
- Views: 8406
Adding the date as "YYYY-MM-DD - " to the extracted folder
All, Just a quick windows bat file for adding the date as "YYYY-MM-DD - " to the start of the extracted folder name; @echo off cd "%1" set name="%3" @For /F "tokens=1,2,3 delims=/ " %%A in ('Date /t') do @( Set Day=%%A Set Month=%%B Set Year=%%C Set All=%%C-%%...
- April 1st, 2012, 3:37 pm
- Forum: General Help
- Topic: Help on a simple script to rename folders
- Replies: 10
- Views: 5346
Re: Help on a simple script to rename folders
Many thanks for that, I didn't think it was as simple as an MSDOS bat file! You set me on a path to remember my old programming days, so I had ago myself too......this was my attempt, both work well. @echo off cd "%1" set name="%3" @For /F "tokens=1,2,3 delims=/ " %%A i...
- March 31st, 2012, 10:24 am
- Forum: General Help
- Topic: Help on a simple script to rename folders
- Replies: 10
- Views: 5346
Re: Help on a simple script to rename folders
Yes, it would!
Im on Windows 7 x64
Im on Windows 7 x64
- March 31st, 2012, 8:18 am
- Forum: General Help
- Topic: Help on a simple script to rename folders
- Replies: 10
- Views: 5346
Help on a simple script to rename folders
Hi all, I would like to run a simple scrip that renames the folder that's automatically extracted to have the date in front of it, ie, to go from 'blah blah extrated folder' ---> ''2012-03-31 - blah blah extrated folder' Using the date format of YYYY-MM-DD Could anyone help me on where to start?