Move a image file from one drive to another drive in Presentaion Server

Hi,
My business requirement is to move a image file which is in C:\ drive to another Drive ( Common Drive ).
So I  need to that through programming.
Kindly help me in this regard.
Thanks
Arbind

Hi Arbind,
<li>The logic is here.
<li>Change the folder names and execute the program accordingly.
REPORT ztest_program.
DATA: wa_pfile  TYPE file_table.
DATA: it_pfiles TYPE STANDARD TABLE OF file_table.
DATA: count     TYPE i,
       dir       TYPE string VALUE 'C:\Venkat1\',
       source    TYPE string,
       dest      TYPE string.
START-OF-SELECTION.
   CALL METHOD cl_gui_frontend_services=>directory_list_files
     EXPORTING
       directory                   = dir
       files_only                  = 'X'
     CHANGING
       file_table                  = it_pfiles
       count                       = count
     EXCEPTIONS
       cntl_error                  = 1
       directory_list_files_failed = 2
       wrong_parameter             = 3
       error_no_gui                = 4
       not_supported_by_gui        = 5
       OTHERS                      = 6.
   LOOP AT it_pfiles INTO wa_pfile.
     IF wa_pfile-filename CP '*.JPEG' OR
        wa_pfile-filename CP '*.BMP'  OR
        wa_pfile-filename CP '*.JPG'.
       CONCATENATE 'C:\Venkat1\' wa_pfile-filename INTO source.
       CONCATENATE 'C:\Venkat2\' wa_pfile-filename INTO dest.
       CALL METHOD cl_gui_frontend_services=>file_copy
         EXPORTING
           SOURCE      = SOURCE
           destination = dest
           overwrite   = 'X'.
     ENDIF.
   ENDLOOP.
Thanks
Venkat.O

Similar Messages

  • How ot move an flat file from one location to another

    Hi all,
    My requirement is that i am having a flat file in my C drive(ex:- C:\123.txt) i have to move that file into One of the folders of the My Netqork places using ABAP Programing
    How can i do this...Can we do this using OPEN DATASET   Plese give me sample code if having
    Regards
    Ajay

    Hi Ajay,
      There is no need for using Open Dataset.
    First you upload your text file using GUI_UPLOAD  from the present location.
    Then you download the file using GUI_DOWNLOAD into the required location(Netwrk Places).
    Check this link for GUI_UPLOAD and GUI_DOWNLOAD.
    http://abaplovers.blogspot.com/2008/03/function-modules-guiupload-guidownload.html
    If you are moving it onto Application Server, then go for
    Open Dataset
    Check this link for Open Dataset:
    http://help.sap.com/saphelp_40b/helpdata/ru/34/55cad198482bc0e10000009b38f91f/content.htm
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Can someone tell me how to move an iweb file from one mac to another?

    I was told by a mac genius a year ago but I can't remember how it was done.

    On one computer, choose Go to Folder from the Finder's Go menu, provide ~/Library/Application Support/iWeb/ as the path, and move the Domain item inside to the corresponding location on the other computer.
    (56486)

  • Move files from one dir to another dir in Application Server..

    Hello all,,,
    My Application Server is UNIX.
    I have few files in a directory.
    Now i need to move these files in a particular directory to another directory..
    do do i need to write the code in ABAP..
    or please give the code if you have any....

    Hi Naveena ,
    You can Try below code.
    suppose you need to move the file in directory 1 to directory 2 .
    you can follow this logic .
    1> using open dataset in output  text mode open the file .
    2> now using open dataset in input mode read the file data into
        internal table itab.
    3 > Now try to enter the internal table value into your desired
    location dir 2 in application server .
    Regards
    Arun.

  • Can't move files from one volume to another

    Using the 1.2 client on SLED, I don't appear to be able to move files from
    one volume to another. I have two drive "mappings", each to a
    different volume on a NW65SP5 box, but when I try and cut and paste files
    I get an error saying "Not on the same file system". However if I drop to
    a terminal and just use mv, that works.
    Is this a known issue?
    Joe

    On Tue, 12 Sep 2006 12:59:23 +0000, Joseph Marton wrote:
    Hmm, yep get the smae problem when trying to move files.
    Copy works just great though.
    I know there are some issues in Gnome/Nautilus that's being worked upon.
    These are outlined in the Readme. For example it's not possible to copy a
    folder from Server A to Server B, then delete the folder form Server A.
    Finally later on copy the folder back to Server A from Server B.
    Also Gnome is leaking file handles, which could be the cause for the
    problem we're getting here.
    I'll ask my contact at Novell about this and have him enter it in as a bug
    if it's not a known issue.
    For a workaround you already have a good alternative of using mv in a
    terminal.
    Niclas Ekstedt, CNA/CNE/CNS/CLS
    Senior Network Consultant/NSC Sysop
    Telindus Sweden AB

  • Move stickie file from one mac to another, move stickie file from one mac to another, How do I move stickie file from one mac to another

    How do you transfer the stickie data file from one mac to another?

    I think this is the file -
    In (hard drive) > Users > yourhomefolder (the one with the house icon) > Library, look for a loose file named StickiesDatabase
    Copying that file to the same location on the new machine (and replacing the file there now) should move the notes. It is probably a good idea that both machines be running the same OS X version.

  • Move files from one folder to another javascript?

    I am running a 3-action droplet automatically using windows task scheduler.  Here are the 3 steps:
    1.    Batch file to move files from hot folder to processing folder
    2.    Run IPP (dr brown's image processor pro) using preloaded settings to make several sizes copies of the files.
    3.    Bat file to move the files from processing folder to archive folder.
    The problem I am observing is that Step 1 works and IPP begins to run.  It only processes the first few images, and then moves on to the 3rd step where the bat file is ran to move all files from processing folder to archive folder.   The trouble is, only a few images were processes (about 10 or so), yet all of the images get moved to the archive without being processed.  Is there a way to make sure that step 2 (IPP) doesn’t begin until all files have successfully been moved from the hot folder to the processing folder?  IPP starts right away and files are still being transferred to the processing folder.
    Does anyone have a script that will move files from one folder to another? 

    I'm sure I have see a way to close down Photoshop in a Photoshop script.  I never had the need to.  It may be a simple statement like app.close(); I don't know javascript and only hack Photoshop script mostly by looking at others code.  app.close(); is a guess on my part. Let me try it. I was wrong its photoshop.quit();
    So make your MoveToArchive.jsx look something like this
    try{
       var BAT = new File(Folder.temp + "/MoveFilesToArchive.bat");
       BAT.open("w");
       BAT.writeln('Copy /Y "c:\\Process\\*.jpg" "c:\\Archive\\*.*"');
       BAT.writeln('Del "c:\Process\\*.jpg"');
       BAT.close();
       BAT.execute();   // execute the temp bat file
    }catch(e){
    alert("Bat MoveFilesToArchive  failed to execute.");
    photoshop.quit();

  • How can I move an icon/file from one screen of my ipad to another?

    How can I move an icon/file from one screen on my ipad to another?

    Press and hold the icon until they start to wiggle. Then while holding it, drag it to the edge of the screen and wait for the page to switch, then let go of the app

  • How do I move all my files from one User Profile (account) into another? I needed to create a new account and want all of my files accessible in the new one.

    How do I move all my files from one User Profile (account) into another?
    I needed to create a new account and want all of my files accessible in the new one.

    ok, what you're learning right now is 101 unix, which is good. Unix is a good thing
    now: the way unix works, and macos (which uses unix underneath) the files and folders work like a hierarchy.
    the start of that tree is /
    so, if you were to do:
    cd /
    (cd means change directory)
    it will bring you at the highest branch of the file system.
    cd /Users
    will bring you to where all the users are.
    to see whats in /Users you can use your friend ls command
    ls means list files/directories
    so:
    cd /Users
    ls -la
    (the -la here means show all (even hidden) and long format (very verbose))  this flag is very optional.
    you will see
    fred
    user2
    for example.
    if you want to see the desktop of user2 you would change directory to it then list the files.
    for example:
    cd /Users/user2/Desktop
    Note that the files and directory are case sensitive, so, desktop is NOT the same as Desktop, or DESKTOP
    ls -la
    you should then be able to see everything in users2 desktop
    you could have done as well the same thing in smaller steps, for example:
    cd /
    cd Users
    cd user2
    cd Desktop
    this is the equivalent of cd /Users/user2/Desktop
    So, for your file, i don't know where it was, but know that if you log in as user2, it will directly put you in
    /Users/user2
    which most likely the file you had created from the other user was in /Users/user1
    if you copied all the files from /Users/original_user to /Users/secondUser
    most likely yes, all your mail, bookmarks etc would be copied over.
    so in your case.
    sudo chown -R seconduser:staff /Users/secondUser
    should work
    Remember that if you start a path with the character /  it means start from the root of the file system, at the highest top you can ever get.
    so
    cd /Users/fred
    is not the same as
    cd Users/fred
    unless you were in / already
    i know it may be confusing at first but it's actually very logical if you play with it.
    to simplify, think of it that / means C:\  on windows
    you can't go any higher than C:\  (in a way)
    if you're unsure which directory you're currently in, you can always type:
    pwd
    it will tell you where you are.
    for example:
    cd /
    pwd
    this shows  /
    cd Users
    pwd
    this now shows /Users
    cd /System/Library
    pwd will show /System/Library
    cd /
    cd /Users
    cd fred
    cd Library
    pwd will show /Users/fred/Library
    unix can look very scary but it's actually vital and very necessary to do tasks sometimes that would take for ever to do via the windows. This is good learning.
    so for the myfile you had created, i can't tell you where it is, at the time you created, if you can do a pwd command you'll know the path,
    ls -la  (this shows all the files where you are)
    if you see myfile in the list
    do a pwd
    whatever is return, the real location of the file would be:
    whatever pwd returned / myfile
    I hope that makes sense.

  • How do I move files from one album to another?

    How can I move files from one album to another? And why does itunes split up imported folders?

    Press the Command key while dragging them.
    (58054)

  • Can I move files from one caralog to another?

    Can I move files from one caralog to another?

    No. you cannot.
    This, among many other reasons, is why multiple catalogs are not recommended.
    (You could import the photo into another catalog, and delete from the first catalog ... and without first using the command File->Write Tags, you will lose your tags, captions and other metdata; version sets, stacks, album/collection membership are lost in any case)

  • Move files from one folder to another

    I am brand new to the application and have spent a ton of time googling various topics, but need some additional help. Seems easy enough, but I can't figure out how to do it...
    I would like to move pics from one folder to another. I can drag files from one folder to another, but they still reside in the original folder as well. Is there a way to cut and paste or a similar function to accomplish this move?
    Thanks.

    Hey, HawaiianHaole, as a multidecade Mac user, let me tell you, Aperture is about the worst example of Mac-iness one could imagine. Ironic, as it's (of course) made by Apple. But it is so inflexible, and insists so vociferously on making the user learn its peculiar interface conventions it reminds me most of something out of that famous company in Redmond.
    Want your Projects in an order you choose? Sorry! Want to arrange your windows so you can see your list of chat buddies while you're working in Aperture? Nope, can't do it! Aging eyes have trouble reading tiny grey type on a grey background? Hey buddy, it was your choice to grow old, don't blame us!
    But all is not lost. Aperture has gotten considerably better of late (versions up to 2.0 were fundamentally unusable in many ways) and will hopefully continue to improve. (ie Maybe they'll fix the printing thing...)
    Please don't make Aperture the basis for your judgement of the Mac OS. Many long time Mac users are having as much trouble with Aperture as you. Mac OSX has significantly reduced customizability but at the benefit of much improved stability and indeed usability. Old school Mac users had to learn to accept this, which most did. You'll hear people talk about the "Way of the Steve". As irksome as Aperture can be, you'll actually have a better time of it if you adopt the Way of the Steve, and accept that you can't do things the way you might want to. This is imho antithetical to the original Mac many of us knew and loved, but it's the way things are today, so we mostly shut up and take it. You can fight with your software all day, or just accept that there are ways you have to adopt and adapt to them.
    Welcome to the Bright Side, hope your Mac experience improves.

  • Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?

    Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?  The cut and paste function is not available and there's no "move to" function.  Am I missing something?  It was so easy with Windows.

    Drag the files, or press Option when pasting them; this accesses the Move To function.
    (124070)

  • Move a file from one lacation to another in FTP

    Hi Experts,
    i have scenario were i have to move a file from one location to another in a FTP the source and the Target  structure are same can we go  with only configuration(ID) why because there is no mapping done but i have dbout when we create a sender agreement,receiver agreemant we need to mention the Message Interface is there any way to skip the IR(Design) part
    Do provide inputs
    Thanks,
    Sampath

    hi ,
      you can skip your IR part. follow this blog
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp
    Edited by: Robin on Jan 20, 2009 11:50 AM

  • Move file from one library to another library via SharePoint 2010 Designer Workflow

    Can SharePoint 2010 designer be able to move a file from one library to another using workflow?  I tried to use the copy list item but it won't show my destination library.  I prefer not to use the 3rd part workflow like
    http://www.codeplex.com/SPDActivities
    Please advise.
    Brian
    Brian

    Hi Brain,
    From your narration, I undersatnd that you want to move document to another library across site or site collection. However,
    the copy list item action is used for coping list item to another library or list in the same site, so you can’t achieve it through ootb workflow action. So to move document to another library across site under the same site collection, then you can use site
    content and structure. If across site collection, then I suggest you use that the 3<sup>rd</sup> part workflow action.
    For more information about site content and structure,
    http://office.microsoft.com/en-us/sharepoint-server-help/work-with-site-content-and-structure-HA010131723.aspx
    Best Regards.
    Kelly Chen
    TechNet Community Support

Maybe you are looking for