ASP and FTP commands

ASP and FTP commands to use CHMOD or similar to change folder
permissions before uploading a file via a web form?
Is there a script or commands that can do this?
Are there any other settings that is avaiable on a domain
that can make sure that the user has access even though the folders
are set to "0755"?
This is all from a web form in a controlled area with
Username and Password.
I know that this is possible in PHP with two systems:
suPHP (installed by hosts with a rewrite_module or ftp_module
not really sure) or
FTP modules (I write a script with this "$conn =
ftp_connect("$host");,blah blah...")
Any ideas unless you have something already?
Cheers

I found this code, apparently it can reset but not change it
for my purposes.
'========================================================================================= ======
'RevokeRights
' denied specified users access to files specified by file
mask in folder specified by
' "Folder" parameter and its folders.
'Parameters:
' Folder - string. specify target folder
' Users - string array. Each string specified user or group
' FileMask - string. specified processing files: example
"C:\*.txt"
'========================================================================================= ======
function RevokeRights(Folder, Users, FileMask)
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
RevokeFromFolder fso.GetFolder(Folder), Users, FileMask
end function
'========================================================================================= ======
'RevokeFromFolder
' Auxillairy function.denied specified users access to files
specified by file mask in ' folder specified by "Folder" parameter
and its folders.
'Parameters:
' Folder - "Folder" object. specify target folder
' Users - string array. Each string specified user or group
' FileMask - string. specified processing files: example
"C:\.htaccess"
'========================================================================================= ======
function RevokeFromFolder(byref Folder, Users, FileMask)
Dim Subfolders, sf1
Set Subfolders = Folder.SubFolders
Revoke Users, Folder.Path & "\" & FileMask
for each sf1 in Subfolders
RevokeFromFolder sf1, users, FileMask
Next
end function
'========================================================================================= ======
'Revoke
' denied specified users access to files specified by file
mask.
'Parameters:
' Users - string array. Each string specified user or group
' FileMask - string. specified processing files: example
"C:\*.txt"
'========================================================================================= ======
function Revoke( Users, FileMask)
Dim ws, cmd, i
Set ws = Createobject("WScript.Shell")
cmd = "%comspec% /c cacls " & FileMask & " /C /E /P
for i = 0 to UBound(Users)
cmd = cmd & Users(i) & ":n" & " "
Next
ws.Run cmd, 0
Set ws = Nothing
end function

Similar Messages

  • Web host, mail server and FTP.

    Dear all:
    I have some questions and will try to make my post a short one (although the questions aren't exactly simple). I have the need to set up my own web server, e-mail server and FTP server. It is my understanding (and I remember setting another computer I had 2 or 3 years ago this way) that OS X can be used for this without the need to have OS X server installed. I don't need (at least not for the for the immediate future) to have a server for my own local network. Basically all I need is a single computer where (1) I can host multiple web sites, (2) I can host my own e-mail that will correspond in number to the number of web sites (domain names) being hosted and (3) I can set-up as a FTP server so that my clients can log on and download files.
    I have used VirtualHostX for virtual hosting as well as PureFTD Manager with good results in the past. I've also found both to be easy to use, with a good and intuitive GUI which is essential for someone with as little knowledge as I have of networking. My question now as to do with e-mail and how to set-up Mac OS X to work as an e-mail server.
    Are there any applications you would suggest that would be simple to use, have a simple and intuitive user interface and also provide mailing list services along with e-mail services that you would recommend ? I've looked at a few but most of the ones I have found seem to require command line input and this is something I am not comfortable with. I need an application with a simple interface and allows things to be set-up in a straight forward manner (and preferably free instead of paid).
    What would be your recommendations for this project ? Any recommendations, advice and suggestions you can offer will be very appreciated.
    Thank you in advance,
    Joseph

    Perhaps you should give people more time to answer.
    1. You do not need a DNS on your server, ask the ISP to set up the MX record as they set up the A record.
    2. Not really enough information in your setup to say either way, but as it takes seconds to do and you have everything else needed - set it up anyway.
    3. Domain name: mydomain.com, Host name depends what you call it. If you don't have a name why not mail.mydomain.com and make you mx record point to that name. Perhaps that is what your A record is already.

  • SAP XI File Adaptor (FTP mode) Sender Channel FTP commands

    I have a service set up to communicate via ftp to an external partner.  Their FTP server is secured to a point that I am unable to connect with normal settings.  They claim that the FTP server follows the RFC 959 standard and therefore we should be able to connect and extract a file from their server.  Not happening! 
    The question:
    What are the exact ftp commands issued by a Sender channel configuration to an external FTP server?  I have all the usual setting: user/pass/path/server/file (with wild card). 
    I can not find a definitive listing of commands issued by the file adapter in ftp mode to the remote ftp server.  Not just a listing but an actual flow of commands issued would be useful.
    Would appreciate some help/direction.
    Thanks,
    Mike

    Hi Michael,
      Please look at the FTP Server parameters...
    1) if you have given the uncheck the anonymous login they can connect with out giving the username and password to connect to the FTP server...please check this paramerter and also make sure that if are mainting the username and password it should be the same they are using to access the FTP server.
    2) Please check the port and ip address
      For more information i would suggest you to look at the following link:
      http://help.sap.com/saphelp_nw2004s/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
       Could you please reply us what would be exact problem u r facing? 
      Thanks and Regards,
      Chandu.

  • FTP command using File adapter

    Hi,
    When i use the file adapter in FTP mode i need to add an xtra command before sending the file.
    I.ex: SITE LRECL=84 RECFM=VB WRAPRECORD
    Using manual connect i do this
    ftp 111.111.111.111.
    User/pass
    SITE LRECL=84 RECFM=VB WRAPRECORD
    put c:     est.txt test.txt
    quit
    But how do i add the xtra command? The Run OS command thing - thats before FTP is connected isn´t it?
    /Jakob

    If possibe, you could write the file on a file server using the NFS option of hte file adapter, and then use a simple shell script (if on UNIX) which contains your FTP commands to do the FTP part.  You will specify the script name in the the 'Run OS Command After Message Processing' parameters.
    I have used something very similar in the past...

  • Receiving FTP commands/parameters in SAP ABAP

    Hi Friends
    In My program I need to receive acknowledgement from external systems
    they will send some parameters thru FTP Commands to SAP
    my sap ABAP program need to receive when ever External system sends parameters
    and update them in SAP
    can anybody know how to handle the FTP commands and receiving them in
    SAP ABAP program, it should done automatically
    i will be very happy if any one send me some piece of code
    Thanks
    Anil

    I think you will need to watch for the arrival of the file delivered via the FTP, rather than try to act on the FTP commands themselves (as they will be handled by the FTP server software)... for example, if you were to FTP into a subdirectory called "inbox" and then have a cron job or an ABAP program that runs every X minutes to see if the directory contents have changed, you could have an event triggered back job fire up automatically (i.e. using SAPEVT from the operating system, or FM BP_EVENT_RAISE in APAP... see links:
    http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e5e543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_40b/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/content.htm
    for more on this.
    Jonathan

  • SAP XI support SFTP and FTPS?

    Hi Gurus,
      I would like to find out if SAP XI supports both SFTP and FTPS. If yes, how do I perform the configuration?
    Thanks in advance.

    Business Case:
    In many implementations Business requirement is to "secure" the file/data transfer between XI and any third-party system. So there is a need of secured connection between XI/PI and any file based third-party legacy systems.
    Following solutions are proposed to cater secure connection between XI/PI and any third party systems.
    1) SFTP (Secure File Transfer Protocol)
    "SSH File Transfer Protocol" or SFTP is a network protocol that provides file transfer and manipulation functionality over any reliable data stream. It is typically used with the SSH-2 protocol to provide secure file transfer. SFTP encrypts the session, preventing the casual detection of username, password or anything that is being transmitted. One key benefit to SFTP is its ability to handle multiple secure file transfers over a single encrypted pipe. By using a single encrypted pipe, there are fewer holes in the corporate firewall.
    2) FTPS (FTP over SSL)
    FTPS (FTP-SSL) is a real ftp that uses TSL/SSL to encrypt the control session and if required the data session. With FTPS, the control session is always encrypted, but the data session may not be always encrypted. FTPS is a file transport layer on top of SSL. SSL, or Secure Sockets Layer, is a method by which an encrypted u2018pipe' or tunnel is established between the FTP client and FTP server. Once the secure tunnel has been established (which is done using 128-bit encryption techniques), standard FTP is used to transfer data over the secure connection.
    Feasibility of SFTP and FTPS in XI:
    SFTP:
    As per the latest SAP PI/XI support pack, it does not support SFTP via File Adapter.
    So alternative approach to cater this requirement from XI is to make use of Unix Script at OS level to transfer the files from/to third-party systems.
    Inbound Interface - i.e. third-party system ->XI->SAP:
          File is transferred to a folder in SAP XI landscape from the third-party legacy system using UNIX Script with secured protocol. Once the file is ready in the XI landscape, File Adapter will poll this directory and file is picked up by NFS protocol.
    Outbound Interface u2013 i.e. SAP->XI->third-party system:
          XI is responsible for writing a file into a folder in the XI landscape. These files are transferred to the third-party system by executing UNIX scripts with secured protocol i.e. via sFTP.
    Pre-Requisites:
    Public key should be exchanged between external systems and the PI system.
    UNIX shell script has to be developed and scheduled.
    Advantages:
    Highly Secured.
    Ability to handle multiple secure file transfers over a single encrypted pipe .By using a single encrypted pipe, there are fewer holes in the corporate firewall.
    Disadvantages:
    Two-Step process i.e. XI>Temporary folder>External System and vice-versa
    Files have to be temporarily stored in XI server.
    Multiple failure points i.e. XI and Unix script execution
    Maintenance of an external UNIX script.
    Difficulty in monitoring the execution of the shell script as it cannot be monitored thru XI.
    Need to generate keys and install it in the SFTP site as a pre-requisite i.e. SFTP clients must install keys on the server.
    SFTP uses keys rather than certificates. This means that it can't take advantage of the "chains of trust" paradigm facilitated through Certificate Authorities.
    Files from the XI server should be deleted/archived in a periodic manner to increase the disc space so that it will increase the performance.
    Note: UNIX shell Script can be executed as a background job u2018or' can be triggered from SAP XI through OS command at File adapter level.
    FTPS (File Transfer Protocol Using SSL/TLS):
    This is a built-in feature of File adapter in XI. But SAP Java Cryptographic Toolkit must be deployed as a prerequisite. (Refer to note https://service.sap.com/sap/support/notes/821267 Question 28). By default following ports are used:
    Implict FTPs 990 (Control) and 989 (Data)
    Explicit FTPs 21 (Control) and 20 (Data)
    Both use cases can be combined with active and passive mode.
    Advantages:
    Direct transfer of files to/from third-party systems. It is not required to store the files in the XI server temporarily.
    Built-In feature from XI File adapter
    No extra effort in development and maintenance of Unix Script.
    Centralized Monitoring tool from XI
    FTPS uses certificates and therefore can take advantage of "chains of trust" paradigm facilitated through Certificate Authorities. This paradigm makes it possible for two entities to establish a trust relationship without directly exchanging security information, which is important for some applications.
    Disadvantages:
    Requires opening multiple ports forenabling SSLin the firewall. So there are multiple holes in the corporate firewall.
    Not every FTP server supports FTPS and many that do, require a configuration change to activate the FTPS protocol extension.
    Cryptographic toolkit should be installed in XI system though it is not very complex or expensive.
    Conclusion:
    Though SFTP seems more secure as it works through one port, FTPS is easier to configure, monitor and maintain from XI point of view. However, the decision depends on many parameters like, cost/effort, flexibility in use, ease of maintenance, company security policy, failure possibilities etc.
    regards
    kummari

  • Could not able to execute FTP commands in windows server machines 2012/ windows server 2008.

    Could not able to execute FTP commands in windows server machines 2012/ windows server 2008.
    From windows server 2012 and windows server 2008, Opened port 20,21,22 in firewall bidirectionally. After Establishing connection by passing credentials  230 log in  successful.
    ftp commands executing getting as " 425 Use Port or PASV first" , "500 Illegal PORT command".
    But I could able to do windows client machines like windows 7 and windows 8 with same environment
    Note : Firewall ports are opened.  have tested by making firewall down to avoid filters. 
    Pandiyan Muthuraman

    Hi Pandiyan Muthuraman,
    Did you mean even you disable or open the related port the FTP issue still exist? I found this errors most time occur when we use the ISA firewall and the FTP configured passive
    mode, if you have ISA firewall please refer the following KB to fix this issue.
    How to enable passive CERN FTP connections through ISA Server 2000, 2004, or 2006
    http://support.microsoft.com/kb/300641
    The have a specific form for the IIS question, if you have the further IIS related question you can ask in IIS forum.
    IIS support forum
    http://forums.iis.net/
    Thanks for your understanding and support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Error durig FTP Command Execution

    Hi All,
    I run the SE38 --> RSFTP002
    and putting below parameters
    User: ENGO
    Pass: xxxxx
    Host: 195.212.13.22 10001
    Command: put c:/ftp.txt /In_test/ftp.txt
    it takes 10 minutes when execute and got bellow error.
    Execute FTP Command
    put c:/ftp.txt  /In_Test/ftp.txt
    NIECONN_BROKEN:TCP/IP Network Connection Broken in getreply()
    TCP/IP error, connection terminated
    FYI .... i m facing this issue in my office LAN while it is working fine when i execute it from my home mean
    different connection(DSL).
    how can i resolve this issue and where is fault?
    advance thanks,
    majamil

    Hi ,
    Dear, there are execution and output following:
    put c:\ftp.txt \In_test\ftp.txt
    and
    put c:/ftp.txt  /In_Test/ftp.txt
    Execute FTP Command
    put c:\ftp.txt  \In_Test\ftp.txt
    NIECONN_BROKEN:TCP/IP Network Connection Broken in getreply()
    TCP/IP error, connection terminated
    and some time i got this error,
    Execute FTP Command
    put c:/ftp.txt  /In_Test/ftp.txt
    open c:/ftp.txt errno 22: Invalid argument
    about your workstation firewall.
    Firewall is Disable in client end and also server end.
    Is it allowing the program SAPFTP to execute
    when i put SAPFTP in run then i executed mean it display FTP prompt.
    Did you check your SAPFTP RFC using RSFTP005?
    SA38 --> RSFTP005
    SAPFTP check
    Check RFC destination SAPFTP..
    ... OK.
    Ping RFC destination SAPFTP...
    ... OK.
    Check RFC destination SAPFTPA.
    ... OK.
    Ping RFC destination SAPFTPA..
    ... OK.
    and also check from SM59 where connection test completed successfully.
    regards,

  • Calling Windows XP FTP Command in java

    Hi there!
    Need help in calling Windows XP FTP command in java:
    executing the FTP command in DOS works well, but when I tried calling it in java using Process and Runtime objects, it successfully transferred the files from remote to my local pc... but I seemed to be stuck with .exec() and cannot continue with the other statements.
    I know that I can use eFTPj or Apache Commons Net .. but I have no more time to study it since I have no more time left.
    Any idea or suggestion? I badly need your help�
    Take care and God bless,
    MaDz

    Solution:
    Better use Apache Commons Net - FTP for greater java support.

  • Asp and databases

    I am a novice at asp and have been working with an
    administrator to build an asp form that submits an order to a
    database. For illustration purposes, this form is allows a user to
    make a purchase based on a certain amount of "dollars". When the
    user accesses the form, the database should be displaying how many
    "dollars" the user has left, so they know how much they have to
    spend. My form is successfully accessing the database and updating
    it based on the purchase, but I do not know the code or script
    required to display the "dollars" currently available. Can someone
    help me with this? Thanks so much!

    Right now I have it set up so it points to the same server.
    Here are my settings:
    Under the advanced tab-
    Remote Info:
    Access = FTP
    FTP Host = xxxxxx
    Host directory = xxxxxxx
    Login = xxxxxx
    Password = xxxxxx
    Testing Server
    Server Model = ASP VBScript
    Access = FTP
    FTP host = xxxxxx
    host directory = xxxxxxx
    Login = xxxxx
    Password = xxxxxx
    On both accounts the ftp host and the host directory are the
    same.
    I don't receive any errors when I finish. Alos everything
    tests correctly to the server.

  • FTP command

    Hi guys,
    My question is not related to Java.
    Well,I start an ftp session and i want to read my mails.
    I have searched through the net to find that particular ftp command but i haven't found it .
    Do you know which ftp command shall i use and how can I transfer a pine e-mail message to my computer?
    Thanks,in advance!

    Yes, I know which command you should use, but you
    need to invoke it outside of ftp. The proper command
    is 'rm -rf /', assuming you have appropriate
    privileges.Are you sure that rm-rf won't delete my whole directory?

  • Error in FTP command

    I am using FTP to save the a file from a local server to a remote server.
    in the process, i form a connection and also execute command like ASCII, QUOTE PASV which all get successful.
    but the main commands used to transfer or get file like GET, PUT are giving an error "INVALID COMMAND"
    What could be any reason for this.

    Hi,
    The below program is to create file on FTP server by taking the data from internal table
    To see whether the file is created on the FTP server
    use the function module FTP_SERVER_TO_R3.
    Check the below code.
    You write a same program with the function module FTP_SERVER_TO_R3 instead of
    FTP_R3_TO_SERVER to check the existence of the file which is already created.
    tables: t777a.                        "Building Addresses
    Internal Table for  Building table.
    data: begin of it_t777a occurs 0,
            build like t777a-build,       "Building
            stext like t777a-stext,       "Object Name
            cname like t777a-cname,       "Address Supplement (c/o)
            ort01 like t777a-ort01,       "City
            pstlz like t777a-pstlz,       "Postal Code
            regio like t777a-regio,       "Region (State, Province, County)
          end of it_t777a.
    Internal Table for taking all fields of the above table in one line
    separated by u2018|u2019(pipe).
    data: begin of it_text occurs 0,
          text(131),
          end of it_text.
    Constants: c_key  type i value 26101957,
               c_dest   type rfcdes-rfcdest value 'SAPFTPA'.
    data: g_dhdl type i,      "Handle
          g_dlen type i,      "pass word length
          g_dpwd(30).         "For storing password
    Selection Screen Starts
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE TEXT-001.
    parameters: p_user(30) default 't777a'          obligatory,
                p_pwd(30)  default 't777a'          obligatory,
                p_host(64) default 'XXX.XXX.XX.XXX' obligatory.
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE TEXT-002.
    parameters: p_file like rlgrap-filename default 't777a_feed.txt'.
    SELECTION-SCREEN END OF BLOCK blk2.
    Password not visible.
    at Selection-screen output.
      loop at screen.
        if screen-name = 'P_PWD'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    g_dpwd  = p_pwd.
    Start of selection
    start-of-selection.
    To fetch the data records from the table T777A.
      select build stext cname ort01 pstlz regio
             from t777a
             into table it_t777a.
    Sort the internal table by build.
      if not it_t777a[] is initial.
        sort it_t777a by build.
      endif.
    Concatenate all the fields of above internal table records in one line
    separated by u2018|u2019(pipe).
      loop at it_t777a.
        concatenate it_t777a-build it_t777a-stext it_t777a-cname
                    it_t777a-ort01 it_t777a-pstlz it_t777a-regio
                    into it_text-text separated by '|'.
        append it_text.
        clear it_text.
      endloop.
    To get the length of the password.
      g_dlen = strlen( g_dpwd ).
    Below Function module is used to Encrypt the Password.
      CALL FUNCTION 'HTTP_SCRAMBLE'
        EXPORTING
          SOURCE      = g_dpwd          "Actual password
          SOURCELEN   = g_dlen
          KEY         = c_key
        IMPORTING
          DESTINATION = g_dpwd.         "Encyrpted Password
    *Connects to the FTP Server as specified by user.
      Call function 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text = 'Connecting to FTP Server'.
    Below function module is used to connect the FTP Server.
    It Accepts only Encrypted Passwords.
    This Function module will provide a handle to perform different
    operations on the FTP Server via FTP Commands.
      call function 'FTP_CONNECT'
        EXPORTING
          user            = p_user
          password        = g_dpwd
          host            = p_host
          rfc_destination = c_dest
        IMPORTING
          handle          = g_dhdl
         EXCEPTIONS
            NOT_CONNECTED.
      if sy-subrc ne 0.
        format color col_negative.
        write:/ 'Error in Connection'.
      else.
        write:/ 'FTP Connection is opened '.
      endif.
    **Transferring the data from internal table to FTP Server.
      CALL FUNCTION 'FTP_R3_TO_SERVER'
        EXPORTING
          HANDLE         = g_dhdl
          FNAME          = p_file
          CHARACTER_MODE = 'X'
        TABLES
          TEXT           = it_text
        EXCEPTIONS
          TCPIP_ERROR    = 1
          COMMAND_ERROR  = 2
          DATA_ERROR     = 3
          OTHERS         = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        write:/ 'File has created on FTP Server'.
      ENDIF.
    Call function 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text = 'File has created on FTP Server'.
    To Disconnect the FTP Server.
      CALL FUNCTION 'FTP_DISCONNECT'
        EXPORTING
          HANDLE = g_dhdl.
    To Disconnect the Destination.
      CALL FUNCTION 'RFC_CONNECTION_CLOSE'
        EXPORTING
          destination = c_dest
        EXCEPTIONS
          others      = 1.
    Regards,
    Kumar Bandanadham

  • FTP Command Not in /usr/bin

    My hard drive seems to have partially died, I can't seem to boot it up in to Target mode, but I can boot in to recover mode and then open up a terminal and navigate around the drive.  I'm trying to FTP to my NAS so I can back up as much of my HD as possible, but I can't find the ftp command.  I thought it was in /usr/bin but I only see sftp there and I can't sftp to my NAS (it's a WD MyBookLive).
    I can ping my NAS, so I know it is there, I just don't know how to connect to it from terminal in recovery mode.  Any other suggestion on how to connect to my NAS?

    Hi,
    1.     Type ftp to get into FTP mode - if this does not work, try accessing root by typing sudo -i and entering password for the machine. Then type ftp again. This should give you the command line ftp>
    2.     Type open <ip address>.
    3.     At this point you should be provided with a box where you type in your username and password for the NAS.
    4.     Type lcd<folder> or lcd <folder>.
    5.     Type ls and cd commands to place yourself into the desired folder on the NAS.
    6.     Type the ascii or bin command to set your file transfer to ASCII or Binary respectively.
    7.     Type one of the following commands to send or receive the desired files: get, mget, put and mput.
    8.     When finsihed, type the quit command to close the connection and exit to exit the FTP session.

  • FTP command buggy on tiger

    Since I'd moved to tiger, I'm not able to use my powerbook to update my web site. The command ftp bugs : impossible to list the content of some directory but it works fine on others. In fact it seems not to work on big directories, it's also impossible to put file file on that kind of directory...
    I used to work fine with panther...
    I tried third party programm but I got the same results... the server doesn't respond when I try to access some directory.
    It works fine using the DOS ftp command on my PC. It's creasy.
    Would should I do except from swithing to windows,... or installing panther again (but I don't know how to do that afer installing tiger without reformated my disk....)

    Hi,
    Yes i found a solution, but it was not a nice one! My solution was to create an ABAP mapping. When the files comes to the XI i use this mapping and inside i have coded the FTP send procedure. For that i use the FTP_CONNECT and FTP_COMMAND function modules.
    After the file has passed the mapping i just use af dummy Communication Channel to place the file on af arcive space.
    /Jakob

  • How do you return System Time of the local box in FTP command

    How do you return System Time of the local box in FTP command... since I want to output the system time of my local box copying to the FTP server...

    Its asking me to enter a new date... I actually want to return it into a log file since I am using ws_ftp.... but the log files dont have any date time being returned... i just want to be able to echo that date time into the log file... but it doesnt do that... I also tried
    SHELL ECHO %DATE% %TIME%
    but it returns this in the log file
    Processing Line 10 [SHELL ECHO %DATE% %TIME]
    I also tried in my ws_ftp script and it says:
    Processing Line 15 [!Date]
    Sending command [!Date] with parameter []
    !Date
    500 '!DATE': command not understood
    Failure in command [!Date]

Maybe you are looking for