![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I am trying to create a file name that puts in the current date and time at the time of creation. I am able to create it just fine without the date and time stamp but not with it. Can someone out there tell me what I am doing wrong? I keep getting a type mismatch error. I think the problem is somewhere with the DTSGlobalVariables. Code is attached - Function Main() dim fso dim FileName set fso = CREATEOBJECT("Scripting.FileSystemObject") FileName = "C:\test " & Date & " " & Time &".txt" DTSGlobalVariables(FileName).Value fso.CreateTextFile FileName set fso = Nothing Main = DTSTaskExecResult_Success End Function Thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
| |