@ECHO OFF
SET YYYYMMDD=%DATE:~-10,4%%DATE:~-5,2%%DATE:~-2,2%
SET HHMM=%TIME:~0,8%
set HHMM=%HHMM::=%
set HHMM=%HHMM: =0%
SET DIR_NAME=%YYYYMMDD%_%HHMM%
ECHO %DIR_NAME%
MKDIR %DIR_NAME%
COPY .\* %DIR_NAME%
PAUSE




<select id="select-test" resultMap="MyTableResult" parameterClass="list">
select * from my_table where col_1 in
<iterate open="(" close=")" conjunction=",">
#[]#
</iterate>
</select>
Java
Listlist = new ArrayList (3); list.add("1"); list.add("2"); list.add("3"); List objs = sqlMapClient.queryForList("select-test",list);
Sub CellTextToShape()
'
' ER図作成補助 Macro
' 選択された範囲の文字列をテキストとするShapeを作成する
'
' Keyboard Shortcut: Ctrl+q
'
Set xColumns = New Collection
'外枠
px = Selection.Left - 5
py = Selection.Top - 5
pw = Selection(1).Width + 10
ph = Selection(1).Height * Selection.Count + 10
Dim xParent As Shape
Set xParent = ActiveSheet.Shapes.AddShape(Type:=msoShapeRectangle, Left:=px, Top:=py, Width:=pw, Height:=ph)
xParent.Line.ForeColor.RGB = RGB(0, 0, 0)
xParent.Fill.ForeColor.RGB = RGB(255, 255, 255)
xColumns.Add xParent
'中身
For i = Selection(1).Row To Selection(Selection.Count).Row
nCol = Selection(1).Column
nRow = Selection(1).Row
x = Cells(i, nCol).Left
y = Cells(i, nCol).Top
w = Cells(i, nCol).Width
h = Cells(i, nCol).Height
txt = Cells(i, nCol).Value
s = Cells(i, nCol).Font.Size
Dim xShape As Shape
Set xShape = ActiveSheet.Shapes.AddShape(Type:=msoShapeRectangle, Left:=x, Top:=y, Width:=w, Height:=h)
xShape.TextFrame.Characters.Text = txt
xShape.TextFrame.Characters.Font.Color = vbBlack
xShape.TextFrame.Characters.Font.Size = s
xShape.TextFrame.HorizontalAlignment = xlHAlignLeft
xShape.TextFrame.MarginBottom = 0
xShape.TextFrame.MarginTop = 0
xShape.Fill.Visible = False
xShape.Line.Visible = False
xShape.Name = txt
xColumns.Add xShape
Debug.Print (txt & vbTab & w & vbTab & h)
'ActiveSheet.Shapes(txt).TextFrame.Characters.Text = txt
Next
For Each xShape In xColumns
xShape.Select Replace:=False
Next
Selection.Group
End Sub