Message 1 of 1
I need to automatically transfer files from Windows to Unix

Not applicable
12-09-2003
03:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
AutoCCAD has a class AcadUtility with a member called PutRemoteFile. I take the example from help and I changed only concrete data:
Sub Example_PutRemoteFile()
Dim DestURL As String, LocalFile As String
DestURL = "ftp://200.3.1.253/" ' or "ftp:drawing:drawing//200.3.1.253/"
'"ftp:drawing:drawing//200.3.1.253/Dest.txt" and many other combinations
LocalFile = "D:\PlotFiles\Dest.txt" 'is valid, file exist...
RetVal = ThisDrawing.Utility.IsURL(DestURL)
MsgBox RetVal 'returns True
' Transfer local file to remote location
ThisDrawing.Utility.PutRemoteFile DestURL, LocalFile
End Sub
The error obtained is: "Inet:CAcInternetSessionFactory::CreateSession() failed"
Does anybody know what's wrong? The function is not well implemented or is something wrong with URL or...?
I made the test from many other computers from company and i get the same result.
Sub Example_PutRemoteFile()
Dim DestURL As String, LocalFile As String
DestURL = "ftp://200.3.1.253/" ' or "ftp:drawing:drawing//200.3.1.253/"
'"ftp:drawing:drawing//200.3.1.253/Dest.txt" and many other combinations
LocalFile = "D:\PlotFiles\Dest.txt" 'is valid, file exist...
RetVal = ThisDrawing.Utility.IsURL(DestURL)
MsgBox RetVal 'returns True
' Transfer local file to remote location
ThisDrawing.Utility.PutRemoteFile DestURL, LocalFile
End Sub
The error obtained is: "Inet:CAcInternetSessionFactory::CreateSession() failed"
Does anybody know what's wrong? The function is not well implemented or is something wrong with URL or...?
I made the test from many other computers from company and i get the same result.