Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to execute a carriage return (Enter) in VBA

Status
Not open for further replies.

vamoose

Programmer
Oct 16, 2005
320
MX
Code goes like this:

Shell ("FTP 172.16.7.10")
Now I need a carriage return, (Enter) command
Shell ("Put c:\temp\ML7807103.txt")
Now I need a carriage return, (Enter) command
Quit
Now I need a carriage return, (Enter) command

Does anyone know the correct syntax for this command ?
Thank you for any assistance.
 


Hi,

vbCR is a VB constant for carriage return.

Skip,

[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue]
 
Why not using the -s:CommandFile command line option of the ftp.exe command ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Please explain the -s:CommandFile command line option of the ftp.exe command ? Not familiar with this, Thanks
 
In a console windows (cmd.exe) type the following:
ftp -?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Alright, that worked great but now another problem.
My ftp -s:CommandFile contains 1 put variable which is constantly changing. Is there a way to pass a variable into the .txt file before the put command is executed ? Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top