Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > File Transfer

Reply
 
Thread Tools Display Modes
  #1  
Old 09-30-2014, 01:23 PM
secureus secureus is offline
Registered User
 
Join Date: Sep 2014
Posts: 14
Clarification on sfxcl.exe

From .Net Application, I am doing the File Transfer using sfxcl.exe
Below code works great. I have two questions to clarify.

1) Variable : strBatchFile has absolute file path. It has complete file path. If we installed SecureFx on 64 bit OS,whether the file path will be on C:\Program Files (x86)\
or, C:\Program Files\

2) Can i carry sfxcl.exe in my Project directory and run the application , assuming that SecureFX might have installed or might not installed.



Code:
Dim sSFTP As String = String.Empty
            sSFTP = "sftp://" & strUserName & ":" & strPassword & "@" & strHostName & ":" & iPort & strDestPath

            Dim strBatchFile As String = String.Empty
            strBatchFile = "C:\Program Files (x86)\VanDyke Software\Clients\sfxcl.exe"

            Dim proc As New System.Diagnostics.Process()
            proc.StartInfo.UseShellExecute = False
            proc.StartInfo.FileName = strBatchFile
            '            proc.StartInfo.Arguments = String.Format("{0},{1}", strSourceFile, sSFTP)
            proc.StartInfo.Arguments = String.Format("""{0}"" {1}", strSourceFile, sSFTP)

            proc.StartInfo.CreateNoWindow = True
            proc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
            proc.Start()
Reply With Quote
  #2  
Old 09-30-2014, 01:43 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi secureus,
Quote:
1) Variable : strBatchFile has absolute file path. It has complete file path. If we installed SecureFx on 64 bit OS,whether the file path will be on C:\Program Files (x86)\
or, C:\Program Files\
You can install the 32-bit version on your 64-bit machine which would use the existing path. If you want to use the 64-bit installer, then you would need to change the path.
Quote:
2) Can i carry sfxcl.exe in my Project directory and run the application , assuming that SecureFX might have installed or might not installed.
SecureFX would need to be installed and registered. You won't be able to include SFXCL in the program and use it.

Does this help to answer your questions?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 09-30-2014, 01:56 PM
secureus secureus is offline
Registered User
 
Join Date: Sep 2014
Posts: 14
Thank you !!

Thank you !!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 11:55 AM.