shelton1979
MIS
I have created a vb script that will convert a file to text for me to import those records, but I can't seem to run it from Access. Can someone help me. here's the vb script i'm using.
Option Explicit
Dim oFSO
Set oFSO = CreateObject("Scripting.FileSystemObject")
If oFSO.FileExists("C:\p45\OMS\6059.sc") = True Then
oFSO.CopyFile"C:\P45\OMS\6059.sc", "C:\P45\OMS\6059.txt"
Else
'The first file was not there
WScript.Quit()
End If
If oFSO.FileExists("C:\p45\OMS\6059.txt") = True Then
oFSO.DeleteFile("C45\OMS\6059.sc")
Else
'There was a problem with the copy because the
'new file is not present
End If
Set oFSO = Nothing
Option Explicit
Dim oFSO
Set oFSO = CreateObject("Scripting.FileSystemObject")
If oFSO.FileExists("C:\p45\OMS\6059.sc") = True Then
oFSO.CopyFile"C:\P45\OMS\6059.sc", "C:\P45\OMS\6059.txt"
Else
'The first file was not there
WScript.Quit()
End If
If oFSO.FileExists("C:\p45\OMS\6059.txt") = True Then
oFSO.DeleteFile("C45\OMS\6059.sc")
Else
'There was a problem with the copy because the
'new file is not present
End If
Set oFSO = Nothing