Basic dos problem

is it not 20% i dunno what its ment to actualy look like the file directory =S ?

im assuimin 20 due to it does this on some searching and spaces in the html bar =Swhy you using % anyways ?? is it for display or space ??


wrong


edit:


it worked for me

C:\%_year%-%_month%-%_day%
 
Last edited:
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.
 
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?
 
basicaly its doing the date command in cmd and going backwards on it the "length" and pasting character a - b on the file name (may not be understanding or explaing right but thts my take on it (HATE PROGRAMMING)


EDIT: that just gives you day month year or whatever your time settings are however mine gives you year month day ...... (you can change in your regional settings how your time is displayed)

mkdir c:\%date:~-4,4%-%date:~-7,2%-%date:~-10,2%
YEAR - MONTH - DAY
 
Last edited:
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?
 
can depend wether you have access or not to that shared drive =S ??? but


move "\\snapserver99\SHARE1\Backup Files\Small Business Server Backup (04).bkf \\snapserver99\SHARE1\Backup Files\%date:~-4,4%-%date:~-7,2%-%date:~-10,2%


if you map the network drive you can just do a

move z:\summit.bkf z:\hello world\summit.bkf


thats all one line btw however what id do is map the network drive this can be done easily by doing

tools>map network drive>etc.....

dunno if youve done that if you put a "$" on the file name it becomes hidden if your worried so you could grant full access but people would have to type the full address in to see it etc ....
 
Back
Top Bottom