Multiple file transfer

I´m trying to use both Skype and www.yousendit.com to transfer files (photographs) to clients. But neither allow me to choose more than one at a time. Speaking with people on PC they have no problem with this, suspecting this is a Mac issue. I have tried Apple+A, shift etc. but it doesn´t work. I have to open one at a time, which is not a good solution. Any suggestions?
Jon Halvorsen
PowerBook G4   Mac OS X (10.4.3)  

Thank you, Scapesuiter. It looks as if it´s worth a try. Does it deliver as much as it promises?

Similar Messages

  • Multiple files transfer pb

    Hi
    Can you please help me with my client/server application.
    here is code
    client
                Vector selectedFileVector = new Vector();
                selectedFileVector.add(new File("d:/loki_vista.xpi"));
                selectedFileVector.add(new File("d:/paul_va.mp3"));
                System.out.println("Conectado");
                Iterator fileIterator = selectedFileVector.iterator ();
                File currentFile = null;
                DataOutputStream out =
                                new DataOutputStream(socket.getOutputStream());
                out.writeInt(selectedFileVector.size());
                while(fileIterator.hasNext()){
                    currentFile = (File)fileIterator.next();
                    DataInputStream in = new DataInputStream(new FileInputStream(currentFile));
                    out.writeUTF(currentFile.getName());
                    out.writeLong(currentFile.length());
                    while (true) {
                        int len = 0;
                        while ((len = in.read(buffer)) > 0) {
                            out.write(buffer, 0, len);
                            System.out.print("#");
                        break;
                    in.close();
                out.flush();
                out.close();
                socket.close();
                System.out.println("\nDone!"); server
    String savePath = "d:/Projects/temp/";
                System.out.println("Receive file");
                DataInputStream inFile =
                            new DataInputStream(socket.getInputStream());
                int fileNumber = inFile.readInt();
                int count = 0;
                while(true){
                    String fileName = inFile.readUTF();
                    Long fileSizeIn = inFile.readLong();
                    DataOutputStream outFile =
                                new DataOutputStream(new FileOutputStream(savePath + fileName));
                    Long fileSizeOut = null;
                    int len = 0;
                    while ((len = inFile.read(buffer)) > 0) {
                        outFile.write(buffer, 0, len);
                        System.out.print("#");
                        fileSizeOut += len;
                        if(fileSizeOut>=fileSizeIn){
                            break;
                   outFile.close();
                   count += 1;
                   if(count == fileNumber){
                       break;
             inFile.close();
             //outFile.close();
             socket.close();Client send 2 files to server. server should create to separate files
    can you please help me

    Hi again. here is new version of server. Works well.
    package fileserver;
    import java.net.*;
    import java.io.*;
    public class KKMultiServerThread extends Thread {
        private Socket socket = null;
        public static final int BUFFER_SIZE = 1024 * 50;
        private byte[] buffer = new byte[BUFFER_SIZE];
        public KKMultiServerThread(Socket socket) {
         super("KKMultiServerThread");
         this.socket = socket;
        public void run() {
         try {
                String savePath = "d:/Projects/temp/";
                System.out.println("Receive files");        
                DataInputStream inFile =
                            new DataInputStream(socket.getInputStream());
                int fileNumber = inFile.readInt();
                System.out.println("Filese to receive : " + fileNumber);
                int count = 0;
                while(true){
                    String fileName = inFile.readUTF();
                    Long fileSizeIn = inFile.readLong();
                    long fileSizeReceived = 0;
                    int bytesToRead = 0;
                    DataOutputStream outFile =
                                new DataOutputStream(new FileOutputStream(savePath + fileName));
                    System.out.println("Receive : " + fileName);
                    System.out.println("Receive size : " + fileSizeIn);
                    while (true) {
                        if(fileSizeIn <= 0){
                            System.out.println("fileSizeIn < = 0");
                            break;
                        int len = 0;
                        if(fileSizeIn < BUFFER_SIZE){
                            bytesToRead = fileSizeIn.intValue();
                        }else {
                            bytesToRead = BUFFER_SIZE;
                        len = inFile.read(buffer, 0, bytesToRead);
                        outFile.write(buffer, 0, len);
                        System.out.println("Read and Write in current iteration : " + len);
                        System.out.print("#");
                        fileSizeIn -=len;
                        fileSizeReceived +=len;
                        System.out.println("To complete : " + fileSizeIn);
                        System.out.println("Received bytes : " + fileSizeReceived);
                   outFile.close();
                   count += 1;
                   if(count == fileNumber){
                       break;
             inFile.close();
             socket.close();
         } catch (IOException e) {
             e.printStackTrace();
    }If you have any comments how that code can be modifyed please post them there.

  • Can Vbscript measure File transfer for mutliple files?

    Hi,
    Can VBscript able to measure timing for multiple files transfer using WinActivate or other option?
    Example:
    copy C:\Single 3GB file to D:\
    copy C:\Single 5GB file to D:\

    robocopy is using msdos to do transfer both files to D:\ and robocopy log file will have the duration of the file copy.
    What I need to know is using vbscript to do in Windows for below task.
    Robocopy does not use DOS, it is a Windows command.
    Why does this need to be done using VBScript? If you really have to, you can either just use VBScript to launch Robocopy or you can use the method jrv mentioned up in the first post.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • WebUtil file transfer in multiple user implementation

    Hi
    Installed WebUtil and able to integrate forms/reports in Web enviroenment 10gAs.
    Around 30 to 40 people will use this application, Now to do client side integration (To Save generated output to Cleint m/c) we are geerating file on AppServer and transferring using Webutil file transfer but my question if multiple users running same report from form and generates two different date ranges to generate to same file on Appserver, How Can I use WebUtil file tranfer for two people running same report. Is that going to be problem in concurrent user environment.
    Setup 10gAs, User A select report A and run with two different data ranges and file saved on Appserver as test.pdf and now user b want to run same report with time range little bit different time range and file has to be saved to same test.pdf on ApopServer, Now how oracle going to handle this ???????.
    Pl answer this is very important as we are running this reports in Web implementation with more than 30 users.
    Many thanks in advance.
    Murthy

    Surely the real issue is that you are always generating to the same filename? Incorporate an identifier into the filename. e.g. the username
    Regards,
    Robin Zimmermann

  • Problem trying to transfer multiple file over a network or the internet

    Hello I'm trying to make a file transfer program to transfer file over the internet or a network. I've been able to successfully transfer one file but when I try to send multiple files I keep getting a EOFException after the client trys to send the files. The client says it sent both files and the connection was closed but the server said that it only received one file and throws a EOFException. I've included the code from the client and the server. Any help is much appreciated.
    The Client
    private class createSocket implements Runnable {
              String address;
              int port;
              public createSocket ( String address, int port ) {
                   this.address = address;
                   this.port = port;
              public void run() {
                   try {
                   postStatusMsg( "Opening Connection at " + address + ":" + port );
                   Socket socket = new Socket( address, port );
                   postStatusMsg( "Connected to " + address + ":" + port );
                   DataOutputStream dos = new DataOutputStream( socket.getOutputStream() );
                   DataInputStream dis = new DataInputStream( socket.getInputStream() );
                   dos.writeInt( files.length );
                   for ( File f : files ) {
                        BufferedOutputStream out = new BufferedOutputStream( dos );
                        BufferedInputStream in = new BufferedInputStream( new FileInputStream(f) );
                        postStatusMsg( "Sending: " + f.getName() );
                        byte[] b = new byte[8192];
                        int read = -1;
                        dos.writeUTF( f.getName() );
                        while ( ( read = in.read( b ) ) >= 0 ) {
                             out.write( b, 0, read );
                        postStatusMsg( "File Sent" );
                        in.close();
                   dos.close();
                   postStatusMsg( "Closing Connection" );
                   socket.close();
                   postStatusMsg( "Connection Closed" );
              catch( IOException e ) {
                   Main.ShowMsgBox( statusTA, "Error", e.getMessage(), JOptionPane.ERROR_MESSAGE );
                   try {
                        e.printStackTrace( new PrintStream( "./log.txt" ) );
                   catch ( FileNotFoundException ee ) {
                        ee.printStackTrace();
         }The Server
    public class ServerHandler implements Runnable {
              private Socket s = null;
              public ServerHandler( Socket s ) {
                   this.s = s;
              public void run() {
                   try {
                        handlers.add( this );
                        DataInputStream dis = new DataInputStream( s.getInputStream() );
                        DataOutputStream dos = new DataOutputStream( s.getOutputStream() );
                        BufferedInputStream in = new BufferedInputStream( dis );
                        BufferedOutputStream out = null;
                        int count = dis.readInt();
                        for ( int i = 0; i < count; i++ ) {
                             File f = new File( Main.settings.SAVE_DIR );
                             if ( !f.isDirectory() )
                                  f.mkdir();
                             f = new File( Main.settings.SAVE_DIR + "\\" + dis.readUTF() );
                             out = new BufferedOutputStream( new FileOutputStream( f ) );
                             postStatusMsg( "Receving: " + f.getName() );
                             byte[] b = new byte[8192];
                             int read = -1;
                             while ( ( read = in.read( b ) ) >= 0 ) {
                                  out.write( b, 0, read );
                             postStatusMsg( "File Received" );
                             out.close();
                        in.close();
                        postStatusMsg( "Closing Connection" );
                        s.close();
                        postStatusMsg( "Connection Closed" );
                        handlers.remove( this );
                   catch ( IOException e ) {
                        Main.ShowMsgBox( statusTA, "Error", e.getMessage(), JOptionPane.ERROR_MESSAGE );
                        try {
                             e.printStackTrace( new PrintStream( "./log.txt" ) );
                        catch ( FileNotFoundException ee ) {
                             ee.printStackTrace();
         }

    Something like this, modulo bugs:
    // sender
    dos.writeLong(file.length());
    // send the file
    // receiver
    long length = dos.readLong();
    long current = 0;
    int count;
    while (current < length && (count = in.read(buffer, 0, (int)Math.min(buffer.length, length-current))) > 0)
      out.write(buffer, 0, count);
      current += count;
    }

  • Bluetooth transfer can't select multiple files

    Hi,
    I'm unable to select multiple files to transfer through bluetooth. Is there any way to transfer mutiple files. It's a pain to select each and every file and transfer...
    Appreciate your response.
    Solved!
    Go to Solution.

    @ vsai :
    Do it properly man, I repeat,
    Open gallery ---> swipe from down-----> tap on share option-----> and then select multiple files by touching them... and now tap share icon.  
    If you find difficulty let me know.

  • Imaging Multiple Computer - Slow Boot File Transfer

    When imaging say 15 computers, the SCCM 2012 boot file transfer is slow.  Is this normal or some setting that needs to be set to fix this?  Thanks.

    If you are running R2, do you have this fix applied? 
    http://support.microsoft.com/kb/2905002/en-us
    You can also try to adjust the TFTP block size to speed it up. 
    http://support.microsoft.com/kb/975710/en-us
    Or you can try to use multicast to speed up many machines.  I'm pretty sure it only applies to OS and not the boot image. 
    http://technet.microsoft.com/en-us/library/hh397406.aspx
    Best, Jacob I'm a PC.

  • How to store multiple files from SAp in to Application server?

    Hi Guys,
                 Can anybody tell me how to store multiple files from SAP into Application server.in my application i have to get the data from SAP tables BSEG , BKPF , BSAK and BSIK that to daily i have to do.
                Any Logic  or Code for how to do is welcomed.
                        plz help me urgently.
    Thanks,
    Gopi

    Hi,
      directories creates basis. If you have task to store data in application server you already should have information into which folder you have to do it. If you don't have this information because it is just for example training for next task then you can use your personal folder into which you have access. To get list of all available folders please look at attached code and form get_directories (you get the list of folders you see in transaction AL11). But don't forget: If you are using open dataset you have to have rights to access application folder!
    Here you are code which I use to upload text files from local disc into application folder
    Regards,
      Karol
    *& Report  FILE_PC_TO_SAP
    REPORT  FILE_PC_TO_SAP.
    DATA: BEGIN OF searchpoints OCCURS 100,
            DIRNAME(200)     TYPE c, " name of directory.
            sp_name(100)     TYPE c," name of entry. (may end with *)
          END OF searchpoints.
    DATA: BEGIN OF isearchpoints OCCURS 10,
            dirname(75) TYPE c,            " name of directory.
            aliass(75)  TYPE c,            " alias for directory.
            svrname(75) TYPE c,            " svr where directory is availabl
            sp_name(75) TYPE c,            " name of entry. (may end with *)
            sp_cs(10)   TYPE c,            " ContainsString pattern for name
          END OF isearchpoints.
    data: l_file type filetable.
    data: l_rc   type i.
    data: itab   type TABLE OF string.
    data: g_tmp_file_path type rlgrap-filename.
    data: wa_itab type string.
    data: h_destin(100) type c.
    data: dat      type string.
    INITIALIZATION.
    perform get_directories.
    START-OF-SELECTION.
    parameters: in_file type string OBLIGATORY LOWER CASE.
    parameters: destin(100) type c OBLIGATORY LOWER CASE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
       FILENAME                      = in_file
       "FILETYPE                      = 'BIN'
       FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = ' '
       HEADER_LENGTH                 = 0
       READ_BY_LINE                  = 'X'
       DAT_MODE                      = ' '
      TABLES
        DATA_TAB                     = itab
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17.
    IF sy-SUBRC <> 0.
      write: / 'Error during loading input file!'.
    ENDIF.
    if h_destin is INITIAL.
      h_destin = in_file.
    endif.
    CONCATENATE destin h_destin into dat SEPARATED BY '/'.
    *TRANSLATE dat TO UPPER CASE.
    OPEN DATASET dat FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-SUBRC = 0.
      loop at itab into wa_itab.
         TRANSFER: wa_itab TO dat.
      endloop.
      CLOSE DATASET dat.
      write: / 'File uploaded!'.
    ELSE.
      write: / 'Not possible to open dataset'.
    ENDIF.
    at selection-screen on value-request for in_file.
      perform select_input_file_name.
      loop at l_file into g_tmp_file_path.
        move g_tmp_file_path to in_file.
        h_destin = ''.
        SPLIT g_tmp_file_path at '\' into table itab.
        loop at itab into g_tmp_file_path.
          h_destin = g_tmp_file_path.
        endloop.
      endloop.
    at selection-screen on value-request for destin.
      DATA: lt_dfies    TYPE TABLE OF dfies.
      DATA: lwa_dfies   TYPE dfies.
      CALL FUNCTION 'DDIF_FIELDINFO_GET'
        EXPORTING
          tabname    = '/BI0/PCO_AREA'
          lfieldname = 'CO_AREA'
        IMPORTING
          dfies_wa   = lwa_dfies.
      lwa_dfies-tabname = 'searchpoints'.
      lwa_dfies-REPTEXT   = 'Destination directory'.
      lwa_dfies-LENG      = 100.
      lwa_dfies-INTLEN    = 100.
      lwa_dfies-OUTPUTLEN = 100.
      lwa_dfies-fieldname = 'SP_NAME'.
      APPEND lwa_dfies TO lt_dfies.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD = 'SP_NAME'
          DYNPPROG = SY-REPID
          DYNPNR = SY-DYNNR
          DYNPROFIELD = 'destin'
          VALUE_ORG = 'S'
        TABLES
          VALUE_TAB = searchpoints
          FIELD_TAB = lt_dfies
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS = 3.
    *&      Form  select_input_file_name
    *       text
    form select_input_file_name.
    *  call function 'F4_FILENAME'
    *       exporting
    *            program_name  = sy-repid
    *            dynpro_number = sy-dynnr
    *            field_name    = 'PATH'
    *       importing
    *            file_name     = g_tmp_file_path.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      EXPORTING
      WINDOW_TITLE = 'Please choose a file'
      "default_extension = '*.TXT'
      "default_filename = 'C:\*.txt'
      initial_directory = 'C:\'
      file_filter = '*.*'
      CHANGING
      FILE_TABLE = l_file
      RC = l_RC
      EXCEPTIONS
      FILE_OPEN_DIALOG_FAILED = 1
      CNTL_ERROR = 2
      ERROR_NO_GUI = 3
      NOT_SUPPORTED_BY_GUI = 4
      OTHERS = 5.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endform.                    "select_input_file_name
    *&      Form  WRITE_DB_HOME
    *       Write DB home directory
    *       no parameters
    FORM write_db_home.
      CASE sy-dbsys(3).
        WHEN 'ORA'.
          CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_ORAHOME'
                             ID 'VALUE' FIELD searchpoints-dirname.
    *--- C5056155 Start of ALV -------------------------------*
    *      PERFORM flip_flop(rsora000) USING cflag.
    *      WRITE: / 'DIR_ORAHOME',       30 searchpoints-dirname.
          MOVE: 'DIR_ORAHOME'        TO searchpoints-sp_name.
          APPEND searchpoints.
    *--- C5056155 End   of ALV -------------------------------*
        WHEN 'ADA'.
          CALL 'C_GETENV' ID 'NAME'  FIELD 'DBROOT'
                          ID 'VALUE' FIELD searchpoints-dirname.
    *--- C5056155 Start of ALV -------------------------------*
    *      PERFORM flip_flop(rsora000) USING cflag.
    *      WRITE: / 'DIR_ADA_DBROOT',    30 searchpoints-dirname.
          MOVE: 'DIR_ADA_DBROOT'     TO searchpoints-sp_name.
          APPEND searchpoints.
    *--- C5056155 End   of ALV -------------------------------*
        WHEN 'INF'.
          CALL 'C_GETENV' ID 'NAME'  FIELD 'INFORMIXDIR'
                          ID 'VALUE' FIELD searchpoints-dirname.
    *--- C5056155 Start of ALV -------------------------------*
    *      PERFORM flip_flop(rsora000) USING cflag.
    *      WRITE: / 'DIR_INF_INFORMIXDIR', 30 searchpoints-dirname.
          MOVE: 'DIR_INF_INFORMIXDIR' TO searchpoints-sp_name.
          APPEND searchpoints..
    *--- C5056155 End   of ALV -------------------------------*
        WHEN 'DB6'.
          CALL 'C_GETENV' ID 'NAME'  FIELD 'INSTHOME'
                          ID 'VALUE' FIELD searchpoints-dirname.
          IF sy-subrc = 0.
    *--- C5056155 Start of ALV -------------------------------*
    *        PERFORM flip_flop(rsora000) USING cflag.
    *        WRITE: / 'DIR_DB2_HOME',    30 searchpoints-dirname.
            MOVE: 'DIR_DB2_HOME'       TO searchpoints-sp_name.
            APPEND searchpoints.
    *--- C5056155 End   of ALV -------------------------------*
          ELSE.
            EXIT.
          ENDIF.
        WHEN OTHERS.
          EXIT.
      ENDCASE.
    ENDFORM.                    " WRITE_DB_HOME
    FORM get_directories.
    * get the name and aliases of ALL userdefined directories
      SELECT * FROM user_dir INTO isearchpoints
        WHERE svrname = sy-uname.
        MOVE isearchpoints-dirname to searchpoints-dirname.
        MOVE isearchpoints-aliass  to searchpoints-sp_name.
        APPEND searchpoints.
      ENDSELECT.
      SELECT * FROM user_dir INTO isearchpoints
        WHERE svrname = 'all'.
        MOVE isearchpoints-dirname to searchpoints-dirname.
        MOVE isearchpoints-aliass  to searchpoints-sp_name.
        APPEND searchpoints.
      ENDSELECT.
    * Get DB home
      IF sy-dbsys(3) = 'ADA'.
        PERFORM write_db_home.
      ENDIF.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_ATRA'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_ATRA'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_BINARY'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_BINARY'         TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory $DIR_CCMS
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_CCMS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_CCMS'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_CT_LOGGING'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_CT_LOGGING'     TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_CT_RUN'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_CT_RUN'         TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_DATA'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_DATA'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * Get DB home
      IF sy-dbsys(3) = 'DB6'.
        PERFORM write_db_home.
      ENDIF.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_DBMS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_DBMS'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_EXECUTABLE'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_EXECUTABLE'     TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_EXE_ROOT'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_EXE_ROOT'       TO searchpoints-sp_name.
      APPEND searchpoints.
    *get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_GEN'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_GEN'            TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_GEN_ROOT'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_GEN_ROOT'       TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_GLOBAL'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_GLOBAL'         TO searchpoints-sp_name.
      APPEND searchpoints.
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_GRAPH_EXE'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_GRAPH_EXE'      TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_GRAPH_LIB'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_GRAPH_LIB'      TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_HOME'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_HOME'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * Get DB home
      IF sy-dbsys(3) = 'INF'.
        PERFORM write_db_home.
      ENDIF.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_INSTALL'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_INSTALL'        TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_INSTANCE'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_INSTANCE'       TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_LIBRARY'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_LIBRARY'        TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_LOGGING'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_LOGGING'        TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the files written by the memory inspector
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_MEMORY_INSPECTOR'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_MEMORY_INSPECTOR' TO searchpoints-sp_name.
      APPEND searchpoints.
    * Get DB home
      IF sy-dbsys(3) = 'ORA'.
        PERFORM write_db_home.
      ENDIF.
    *get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_PAGING'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_PAGING'         TO searchpoints-sp_name.
      APPEND searchpoints.
    *get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_PUT'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_PUT'            TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_PERF'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_PERF'           TO searchpoints-sp_name.
      APPEND searchpoints.
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_PROFILE'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_PROFILE'        TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_PROTOKOLLS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_PROTOKOLLS'     TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_REORG'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_REORG'          TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_ROLL'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_ROLL'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_RSYN'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_RSYN'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * calculate directory for saphostagent (no sapparam available...)
      IF ( sy-opsys(3) = 'WIN' ) OR ( sy-opsys(3) = 'Win' ).
        DATA: windir_path(64),  programfiles_path(64).
    *   hoping that ProgramFiles is set in service user environment
        CALL 'C_GETENV' ID 'NAME'  FIELD 'ProgramFiles'
                        ID 'VALUE' FIELD programfiles_path.
        IF programfiles_path IS INITIAL.
    *     %ProgramFiles% not available. guess from windir
          CALL 'C_GETENV' ID 'NAME'  FIELD 'windir'
                          ID 'VALUE' FIELD windir_path.
    *     e.g. S:\WINDOWS ==> S:\Program Files
          CONCATENATE windir_path(3) 'Program Files' INTO programfiles_path.
        ENDIF.
        CONCATENATE programfiles_path '\SAP\hostctrl'
                                                 INTO searchpoints-dirname.
      ELSE.
    *   on UNIX, the path is hard coded
        searchpoints-dirname = '/usr/sap/hostctrl'.
      ENDIF.
      MOVE: 'DIR_SAPHOSTAGENT' TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_SAPUSERS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      IF searchpoints-dirname = '.'.
        IF sy-opsys = 'Windows NT'.
          searchpoints-dirname = '.\'.
        ELSE.
          searchpoints-dirname = './'.
        ENDIF.
      ENDIF.
      MOVE: 'DIR_SAPUSERS'       TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_SETUPS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_SETUPS'         TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_SORTTMP'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_SORTTMP'        TO searchpoints-sp_name.
      APPEND searchpoints.
    *get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_SOURCE'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_SOURCE'         TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_TEMP'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_TEMP'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_TRANS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_TRANS'          TO searchpoints-sp_name.
      APPEND searchpoints.
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_TRFILES'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_TRFILES'        TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_TRSUB'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_TRSUB'          TO searchpoints-sp_name.
      APPEND searchpoints.
    *  get the name of the current server.
      CALL 'C_SAPGPARAM' ID 'NAME' FIELD 'rdisp/myname'
                         ID 'VALUE' FIELD searchpoints-dirname.
      data: h_ind type i.
      LOOP AT searchpoints.
        h_ind = sy-tabix.
        IF searchpoints-sp_name IS INITIAL.
          DELETE searchpoints INDEX h_ind.
        ENDIF.
      ENDLOOP.
    ENDFORM.

  • Sending multiple files using one socket

    Hi guys
    I'm working on a simple app that sends multiple files over LAN or I-NET. The problem is that the app run seems to be non-deterministic. I keep getting this error on the client side:
    java.io.UTFDataFormatException: malformed input around byte 5
            at java.io.DataInputStream.readUTF(Unknown Source)
            at java.io.DataInputStream.readUTF(Unknown Source)
            at service.DownloadManager.storeRawStream(DownloadManager.java:116)
            at service.DownloadManager.downloadFiles(DownloadManager.java:47)
            at manager.NetworkTransferClient$1.run(NetworkTransferClient.java:104)The byte position changes every time I run a transfer. The error is caused by this line: String fileName = in.readUTF(); Here's the complete code:
    Client
    private void storeRawStream() {                               
            try {
                FileOutputStream fileOut;                       
                int fileCount = in.readInt();           
                for(int i=0; i<fileCount; i++) { 
                    byte data[] = new byte[BUFFER];
                    String fileName = in.readUTF();               
                    fileOut = new FileOutputStream(new File(upload, fileName)); 
                    long fileLength = in.readLong();                                 
                    for(int j=0; j<fileLength / BUFFER; j++) {
                        int totalCount = 0;
                        while(totalCount < BUFFER) {                       
                            int count = in.read(data, totalCount, BUFFER - totalCount);
                            totalCount += count;                 
                        fileOut.write(data, 0, totalCount);
                        fileOut.flush();
                        bytesRecieved += totalCount;                                  
                    // read the remaining bytes               
                    int count = in.read(data, 0, (int) (fileLength % BUFFER));                                        
                    fileOut.write(data, 0, count);              
                    fileOut.flush();
                    fileOut.close();      
                    transferLog.append("File " + fileName + " recieved successfully.\n");  
            } catch (Exception ex) {
                ex.printStackTrace();
        }Server
    public void sendFiles(File[] files) throws Exception {
            byte data[] = new byte[BUFFER];
            FileInputStream fileInput;                                       
            out.writeInt(files.length);              
            for (int i=0; i<files.length; i++) {   
                // send the file name
                out.writeUTF(files.getName());
    // send the file length
    out.writeLong(files[i].length());
    fileInput = new FileInputStream(files[i]);
    int count;
    while((count = fileInput.read(data, 0, BUFFER)) != -1) {
    out.write(data, 0, count);
    bytesSent += count;
    fileInput.close();
    out.flush();
    Does anybody know where's the problem? Thanx for any reply.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Send the length of each file ahead of each file, with DataOutputStream.writeLong().
    When reading, read that long, then stop reading bytes when you've read exactly that length.

  • Multiple file creation

    Hi.
    I have to create multiple files for mulitiple plants entered through select-options.
    I have done this for single file but not getting the idea how to do it for multiple files.
    <u><b><b>My work:</b></b></u>
    *File creation
        CONCATENATE
                    c_path               "file path
                    c_qm                 " 'QM'
                    c_underscore         "underscore
                    c_results            " 'RESULTS'
                    c_underscore
                    s_werks              "plant
                    c_underscore
                    sy-datum+4(2)        "system date
                    sy-datum+6(2)
                    sy-datum+0(4)
                    c_underscore
                    sy-uzeit+0(2)        "system time
                    sy-uzeit+2(2)
                    c_ext                "file extension
               INTO g_file_name.
      ENDLOOP.
    Open File on the application server for processing
      OPEN DATASET g_file_name FOR OUTPUT IN TEXT MODE
      ENCODING DEFAULT.
      IF sy-subrc NE 0.
    *Display error message
        MESSAGE i055.              " Error in opening file
        LEAVE LIST-PROCESSING.
      ELSE.
        LOOP AT i_final INTO wa_final.
          TRANSFER wa_final TO g_file_name.
        ENDLOOP.
      ENDIF.
      CLOSE DATASET g_file_name.
    Then i am updating the database table using i_update
    Work Area for Z_DATADOWNLOAD table
    DATA: l_wa_update TYPE ztable
      l_wa_update-prog_name    = g_repid.
      l_wa_update-plant        = s_werks.
      l_wa_update-last_run_dt  = g_sysdate.
      l_wa_update-last_run_tm  = g_systime.
      MODIFY ztable FROM l_wa_update.
    Pls let me know how to manage this for multiple files.

    Hi Simran.
    Consider this code.
    REPORT zztest.
    TABLES : t001w.
    *Declare one Internal table for werks
    DATA :BEGIN OF it_werks OCCURS 0,
          werks TYPE t001w-werks,
          END OF it_werks.
    *Select options
    SELECT-OPTIONS : s_werks FOR t001w-werks.
    START-OF-SELECTION.
    *GEt all the plants entered in selection screen from
    *DB table <b>T001W (Plants/Branches)</b>
      SELECT werks FROM t001w INTO TABLE it_werks WHERE werks IN s_werks.
    *Loop that internal table
    <b>  LOOP AT it_werks.</b>
        CONCATENATE
        c_path "file path
        c_qm " 'QM'
        c_underscore   "underscore
        c_results      " 'RESULTS'
        c_underscore
       <b> it_werks-werks    "Plant</b>
        c_underscore
        sy-datum+4(2)    "system date
        sy-datum+6(2)
        sy-datum+0(4)
        c_underscore
        sy-uzeit+0(2)  "system time
        sy-uzeit+2(2)
        c_ext "file extension
        INTO g_file_name.
    <b>*Now you have the file path for the werks
    *Open File on the application server for processing</b>
        OPEN DATASET g_file_name FOR OUTPUT IN TEXT MODE
        ENCODING DEFAULT.
        IF sy-subrc NE 0.
    *Display error message
          MESSAGE i055. " Error in opening file
          LEAVE LIST-PROCESSING.
        ELSE.
          LOOP AT i_final INTO wa_final.
            TRANSFER wa_final TO g_file_name.
          ENDLOOP.
        ENDIF.
        CLOSE DATASET g_file_name.
    * Then i am updating the database table using i_update
    * Work Area for Z_DATADOWNLOAD table
        DATA: l_wa_update TYPE ztable
        l_wa_update-prog_name = g_repid.
        l_wa_update-plant = s_werks.
        l_wa_update-last_run_dt = g_sysdate.
        l_wa_update-last_run_tm = g_systime.
        MODIFY ztable FROM l_wa_update.
    *Pls let me know how to manage this for multiple files.
    <b>  ENDLOOP.</b>
    Regards,
    Arun Sambargi.

  • How to send multiple files in parallel using ftp with single connection

    Hi.
    i have written code for file upload manager using ftp..
    it perfectly working with sequence file uploading in single connection..
    And i tried to upload multiple files with parallel processing in a single connection.... but it is not working properly.. i also used thread concept
    but single file only transfered and connection refused...
    my code here...
    //////////////////// main class //////////////////////////////////////////
    ftp.connect();
    ftp.login();
    String [] archivos = new  String[100];
                                      File dir = new File("C:\\Files Uploading\\");
                                       archivos = dir.list();
                                       for (int s=0; s<archivos.length;s++)
         //Start Data Transfer Here
         new DataTransfer(archivos[s]).start();
                                       Thread.sleep(1000);
    /////////////////////// thread class ////////////////////////////////
    class DataTransfer extends Thread
          String FileName="";
          String LocalPath="",RemotePath="";
           public DataTransfer(String fname)
         FileName = fname;
         LocalPath = "C:\\Files Uploading\\" + FileName;
         RemotePath = FileName;
         System.out.println(LocalPath);          
            public void run()
                        System.out.println("DataTransfer Started");
         /File Transfer Here
         try
               FileInputStream input = new FileInputStream(LocalPath);
                               Ftp_Client.storeFile(RemotePath,input);
         System.out.println("Successfully sent : " + RemotePath);
         catch (Exception exc)
              System.out.println(exc.getMessage());
              System.out.println("DataTransfer Ended");
         }otherwise tell me any other alternate way

    And i tried to upload multiple files with
    parallel processing in a single connection....
    but it is not working properly.FTP isn't a multiplexing protocol. How could it work at all?

  • How do you select multiple files to drag

    How do you select multiple files to drag from one folder to another? Is there a command?

    Open the folder which has the contents you want to transfer.  Press COMMAND 'A' and then all of the data should be highlited in blue.  Drag it to the new folder.
    If only certain files are to be transferred, then you have to select them (COMMAND 'A')  individually and the drag them as a group to the new location.
    Ciao.

  • How to achieve the maximum file transfer rate from PXI to local host?

    I will have to copy a huge amount of data (as big as 50 GB) from a PXI-8106 unit on site to a laptop. Currently it would take several hours. It is critical to max out the data transfer rate.
    The standard method we've been using is just drag and drop using Windows Explorer via FTP. I tried to use FTP VIs with Filezilla Server as well but the transfer rate is only like 1.5 MB/s. Is this normal? Once I saw it was 3.0 MB/s but for some reason, that isn't happening now.
    For another option, I tried to transfer data to a USB flash drive but it's even slower. As far as I know, USB 2.0 transfer rate is supposed to be around 60 MB/s but why would it be slower than 1.5 MB/s? What could be the speed limiting factor in my file transfer setup?
    Any tips on improving file transfer rate would be appreciated!

    Sustained 40 MB/s? That is my dream speed! The maximum speed I've ever seen here was about 25 MB/s, which is still very good, and that happened only after copying back and forth, which I explained above. Let me go through what I did with screencaps first.
    These are the test tdms files to transfer in the PXI: an original file witten in the PXI and its copy file. I copied the original file from PXI to laptop and renamed it (added '_copy') and then copied it back to PXI.
    FTP module is transferring the original file to the Filezilla server on laptop. Note the low speed.
    FTP module is transferring the copy file to the Filezilla server on laptop. Note the higher speed.
    This is the FTP sub VI I'm using. It transfers files in sub-folders (one level lower), too. The data connection is set to 'passive' on the FTP Put Multiple Files VI but it doesn't seem to make any difference. I attach the sub VI.
    You tried the file transfer with a 500 MB text file. Would there be any difference if the file type was tdms? Would the RAM size matter? It is 2GB here.
    And the LED is orange, which means Gigabit.
    Another question: Is there any way to programmatically stop file transfer in progress? Currently, I just have to restart the PXI.
    Thank you!
    Attachments:
    FTP.vi ‏40 KB

  • Automated FTP of multiple files

    What's wrong with this picture:
    host='000.000.000.000'
    ftp -v $host << EOF
    cd backups
    lcd /Users/duane/Documents/backups/ftp_uploads
    mput *
    bye
    EOF
    It uploads one file then bails out. Main issue is that it keeps asking me:
    mput myfile2007_0430.tgz [anpqy?]?
    ¿Qué? So either I have to find a switch to offset this silly question or I need to list one file at a time with a for i in... statement.
    The for statement is an issue because I don't want it to print to the screen but just do the job.
    Any help appreciated. :-/

    <pre class="command">
    ftp -v $host << EOF
    cd backups
    lcd /Users/duane/Documents/backups/ftp_uploads
    prompt
    mput *
    bye
    EOF
    </pre>
    From the ftp man page:
    <pre>
    prompt Toggle interactive prompting. Interactive prompting occurs
    during multiple file transfers to allow the user to selec-
    tively retrieve or store files. If prompting is turned off
    (default is on), any mget or mput will transfer all files,
    and any mdelete will delete all files.
    </pre>
    Powerbook G4 1GHz   Mac OS X (10.3.9)  

  • How to download multiple files from Creative Cloud

    I uploaded about 30 photos to creative cloud storage. Now I cannot find a way to download a group or all at the same time. You can select multiples and move to different folders within CC, but can't download multiples. Had I known this before using it, I would have made a zip folder of images. It seems a bit clunky if this is true.

    [email protected]
    Thanks for the info. As a professional user, more functionality in the storage would be helpful. Right now I'm using other file transfer and storage soulutions that are far superior.
    I think most Cloud users would very much agree with you.
    The Cloud today is a reasonable version 1 product but it's clunky, lacks fundamental features and is a latecomer to a rapidly maturing market. Other offerings currently shine in comparison.
    Our expectations as consumers are very high because we're used to the Dropboxes (and other superior 3rd party solutions) out there.
    Adobe has been inundated with feature suggestions and enhancements from users. The more, the better.
    They might, as they claim, be working on improvements but they've got to get a move on before the Cloud tarnishes its own reputation too much due to lack of (expected) features.
    [email protected] wrote:
    By the way, the links in your post did not lead anywhere.
    The Jive forum software used by Adobe is creating bad links.
    Correct links are:
    Three things I'd like to see...
    http://forums.adobe.com/ideas/1789
    Three ideas: folder sharing, branded channel, e-mail notification
    http://forums.adobe.com/ideas/1706
    Share folders and branded channel?
    http://forums.adobe.com/ideas/1701

Maybe you are looking for

  • Errors while Configuring a Oracle DB on RAC

    Iam configuring a DB Table in IDM 8.0. Here is my URL jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=10.240.149.191) (PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=10.240.149.192) (PORT=1521))(CONNECT_DATA=(SERVICE_NAME=IDMPRO

  • Import package failed

    hi When compiled with java 1.5, I get the message package a.b.c does not exist. Into what directory do you need to store a executalbe jar file in order to be able to import the package?

  • Foreign payments indicator

    Hello gurus! I need to create one simple report from BKPF table which shows only accounting documents related to foreign payments. Which filed in this or some other connected table contains some kind of indicator for foreign/domestic payments. PS: I'

  • SOAP Sender Authentication - What user authorizations are required in XI?

    Hi Experts, When exposing an XI webservice to an external WS client, the WS client needs to provide the user id and password in the webapplication while sending the SOAP request to XI. 1. Could you tell me what authorizations this particular user sho

  • JButton in a BoxLayout

    A JButton has not the same reaction like a JTextField in a BoxLayout. Why? I need something like this and don't know how: JLabel JButton JLabel JButton The JButtons don't have the same Text, but they must have the same size and the same Difference fr