24 Jul 2007 at 15:06 #1 joey1211 joey1211 Soldato Joined 28 Dec 2003 Posts 3,768 Location Aberwristwatch mkdir c:\%_year%-%_month%-%_day% Why does this only make a folder named --?
24 Jul 2007 at 15:14 #3 joey1211 joey1211 Soldato OP Joined 28 Dec 2003 Posts 3,768 Location Aberwristwatch I'm trying to create a batch file that will create a new folder every friday, called that days date and copy a file from the network into it.
I'm trying to create a batch file that will create a new folder every friday, called that days date and copy a file from the network into it.
24 Jul 2007 at 15:21 #5 joey1211 joey1211 Soldato OP Joined 28 Dec 2003 Posts 3,768 Location Aberwristwatch No, nothing. Tried it on another pc and it makes a folder named %_year%-%_month%-%_day%
24 Jul 2007 at 15:36 #7 joey1211 joey1211 Soldato OP Joined 28 Dec 2003 Posts 3,768 Location Aberwristwatch md "c:\%date:/=-%" This also seems to work. No idea how though. Yep gonna set up a schedule. Out of interest what do the three sets of numbers after the ~ mean?
md "c:\%date:/=-%" This also seems to work. No idea how though. Yep gonna set up a schedule. Out of interest what do the three sets of numbers after the ~ mean?
24 Jul 2007 at 15:58 #9 joey1211 joey1211 Soldato OP Joined 28 Dec 2003 Posts 3,768 Location Aberwristwatch md "\\snapserver99\SHARE1\Backup Files\%date:~-4,4%-%date:~-7,2%-%date:~-10,2%" move "\\snapserver99\SHARE1\Backup Files\Small Business Server Backup (04).bkf ................................. How do I move the file to the folder I just created?
md "\\snapserver99\SHARE1\Backup Files\%date:~-4,4%-%date:~-7,2%-%date:~-10,2%" move "\\snapserver99\SHARE1\Backup Files\Small Business Server Backup (04).bkf ................................. How do I move the file to the folder I just created?
25 Jul 2007 at 12:05 #11 joey1211 joey1211 Soldato OP Joined 28 Dec 2003 Posts 3,768 Location Aberwristwatch Fantastic. Works a treat. Thanks. The snapserver has it's own OS and i can sort permissions out there. Thanks again
Fantastic. Works a treat. Thanks. The snapserver has it's own OS and i can sort permissions out there. Thanks again