Jul 25, 2006 #1 TMRO Technical User Jan 10, 2003 140 CA Hi, I need to create a job in SQL 2000 that will copy a specified file in a specified directory. If that directory doens't exist then it should create it. Is this possible in SQL? Thanks, TMRO
Hi, I need to create a job in SQL 2000 that will copy a specified file in a specified directory. If that directory doens't exist then it should create it. Is this possible in SQL? Thanks, TMRO
Jul 25, 2006 1 #2 JPMontreal Programmer Feb 18, 2002 153 US Hi, You will have to use an ActiveX programming in a DTS that uses File system object: Dim objFSO, objFile, objFolder Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder("D:\Data\LOG\SendLog\") … For Each objFile in objFolder.Files … objFile.move "D:\Data\LOG\SendLog\Test\" Jean-Paul Montreal To send me E-Mail, remove “USELESSCODE”. jp@USELESSCODEsolutionsvba.com Upvote 0 Downvote
Hi, You will have to use an ActiveX programming in a DTS that uses File system object: Dim objFSO, objFile, objFolder Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder("D:\Data\LOG\SendLog\") … For Each objFile in objFolder.Files … objFile.move "D:\Data\LOG\SendLog\Test\" Jean-Paul Montreal To send me E-Mail, remove “USELESSCODE”. jp@USELESSCODEsolutionsvba.com
Jul 25, 2006 #4 JPMontreal Programmer Feb 18, 2002 153 US Glad I could help. Jean-Paul Montreal To send me E-Mail, remove “USELESSCODE”. jp@USELESSCODEsolutionsvba.com Upvote 0 Downvote
Glad I could help. Jean-Paul Montreal To send me E-Mail, remove “USELESSCODE”. jp@USELESSCODEsolutionsvba.com