Changeset 465 for trunk/TestCase/SimpleTestCase/SimpleTestCase.ab
- Timestamp:
- Mar 8, 2008, 4:52:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TestCase/SimpleTestCase/SimpleTestCase.ab
r457 r465 4 4 5 5 Dim hStdOut = _System_hConsoleOut 6 7 Sub Initialize() 8 ' 初期化関数 9 10 ' 一時ディレクトリを空にしておく 11 Dim tempDir = System.IO.Path.GetDirectoryName( System.Windows.Forms.Application.ExecutablePath ) + "\temp" 12 If System.IO.Directory.Exists( tempDir ) Then 13 ' 存在するときは一旦消す 14 System.IO.Directory.Delete( tempDir, True ) 15 End If 16 System.IO.Directory.CreateDirectory( tempDir ) 17 End Sub 18 19 Initialize() 6 20 7 21 Dim csbi As CONSOLE_SCREEN_BUFFER_INFO … … 40 54 End Sub 41 55 56 Function GetExclusiveTempDirPath( testCaseName As String ) As String 57 Dim tempDir = System.IO.Path.GetDirectoryName( System.Windows.Forms.Application.ExecutablePath ) + "\temp" 58 Dim exclusiveTempDirPath = tempDir + "\" + testCaseName 59 60 If Not System.IO.Directory.Exists( exclusiveTempDirPath ) Then 61 ' 無かったら作る 62 System.IO.Directory.CreateDirectory( exclusiveTempDirPath ) 63 End If 64 65 Return exclusiveTempDirPath 66 End Function 67 42 68 Print "Please Enter key" 43 69 System.Console.ReadLine()
Note:
See TracChangeset
for help on using the changeset viewer.