Move file within directories

Hi
Can anyone let me know how to move a file from source directory to target directory in an unix/windows NT system and how to do error handling.
Please let me know the code.There was a thread which desscribed this but am not able to locate it
Thanks
Panda<b></b>

Hi Guys
I tried the following code for Windows NT to move a file from one directory to another but its not working.Can you please suggest what is going wrong
am using operating system command 'MOVE' while creating external command
ws_file_path = 'D:\usr\sap\UKR\DVEBMGS00\work\ENQLOG00.DAT'.
p_tg_dir = 'D:\usr\sap\UKR\DVEBMGS00\data'.
Forming the command
concatenate ws_file_path p_tg_dir into ws_comm_winnt
separated by space.
Call function to execute 'ZMV' command defined in SM69 CALL FUNCTION
call function 'SXPG_COMMAND_EXECUTE'
  exporting
    commandname                   = 'ZMV'
    additional_parameters         = ws_comm_winnt
    operatingsystem               = sy-opsys
    stdout                        = 'X'
    stderr                        = 'X'
    terminationwait               = 'X'
  importing
    status                        = ws_zstat
    exitcode                      = ws_zexit
  tables
    exec_protocol                 = t_move
  exceptions
    no_permission                 = 1
    command_not_found             = 2
    parameters_too_long           = 3
    security_risk                 = 4
    wrong_check_call_interface    = 5
    program_start_error           = 6
    program_termination_error     = 7
    x_error                       = 8
    parameter_expected            = 9
    too_many_parameters           = 10
    illegal_command               = 11
    wrong_asynchronous_parameters = 12
    cant_enq_tbtco_entry          = 13
    jobcount_generation_error     = 14
    others                        = 15.
if sy-subrc <> 0.
  message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.

Similar Messages

  • Can you manually move files within a folder to put them in a specific order?

    I am new to mac, I was wondering if there is an app maybe that you could move files within a folder (ie photos) to make them in a specific order and then rename them, I used to be able to do this with my windows xp..... cant seem to make it happen with my new macbook pro and from what i can gather it cant be done? can it? Thanx in advance.........

    Thomas, I have set the view to maunally but when i move the icons they return to where they were sitting..?
    In the Finder? You probably have a sort selected in the Sort By submenu in the View menu. However, the order of icons in icon view won't have any influence on the order of the images in the slideshow, I think. Use iPhoto, this is one of the things it's made for, the Finder is not.

  • I trimmed a .mov file within Iphoto11 and now I can't copy & paste to my desktop

    Hi
    I imported a .mov file from my digital camera to my Iphoto11 Library.
    I wanted to email someone the video clip but wanted to TRIM it to remove an unwanted section of the .mov
    So I used the functionality within Iphoto to Trim the .mov
    I then right clicked on the .mov selected COPY
    I then went to my desktop and selected Paste.
    Instead of pasting the 50MB video, it pasted an 80kb .mov file.
    The files opens using Quicktime but is blank.
    The .mov file still plays fine in Iphoto11.
    I have tried searching for the .mov filename but can't find it on my MAC.
    Other ,mov files can be copied and pasted with no issue.
    I have opened up Iphoto using the special key stroke and selected all the options.  this has not worked.
    Anyone got any ideas?

    thanks Terence,
    So I went into Iphoto, selected the Trimmed Movie and selected. PHOTOS, revert to Original.
    Now I can COPY and PASTE the MOVIE from Iphoto to a normal Folder.
    I then opened the original .mov file in Quicktime and trim the movie.  I then go to close and save
    "The Operation could not be completed, an unknown error occured"

  • Create Automator workflow/AppleScript to automatically move files within NAS

    Running iMac / Macbook Air (OS 10.9.5), having the Macs connected wireless to the same network as a Seagate Central (NAS). On the Seagate Central and the iMac I have specified a couple of folders which are bidirectional synced via "Sync folders pro", e.g. pictures/movies folders. As a family, we have several iPhones (4S and 5S) with dedicated folders on the Seagate Central / iMac. Having the Seagate Media app on the iPhones, we are able to upload (and thereby free iPhone memory) pictures/movies directly onto the Seagate Central (pictures/movies which then are synced back onto the iMac). However, when uploading pictures/movies from the iPhone to the Seagate central (via Seagate Media app), it is not possible to define a target directory, and the pictures are therefore uploaded to a dedicated directory. I therefore search for some workflow/script to automatically (when new pictures/movies are uploaded, or at a daily basis);
    - Search for pictures/movies within a specific NAS folder
    - Move the pictures/movies to another specific NAS folder
    - Delete all other files/folders within the NAS folder being searched
    New to Automator / scripting, so I hope you bear with me even if the questions are dumb.
    Is it possible to make the NAS recognize a workflow/script without starting the iMac and/or MBA?

    Ok, so I made it a bit further, now having the following Automator Workflow (iCal)
    1. Get requested clients (check for ignore input from this action)
    - afp://192.168.1.86/Public
    2. Connect to client
    - I end up with a mounted disc (Public folder). Note that I end up at the same folder even if using afp://192.168.1.86/Public/iPhone/Photos in step 1.
    3. Get specified Finder items (check for ignore input from this action - to avoid having the Public folder itself following the workflow)
    - Choose the subfolder Public/iPhone/Photos
    4. Get folder content
    5. Filter Finder items
    - Did not get any results by using arguments as "kind is picture" and/or "kind is movie"
    - Ended up using arguments as "name contains jpg", "name contains mov" etc
    6. Move Finder items
    - Destination folder: Public/Pictures/iPhone
    - I now successfully managed to transfer the pictures and movies from one NAS folder to another
    *** I now want to continue the workflow to delete all other Folders/Files on Public/iPhone/Photos ***
    7. Get specified Finder items (check for ignore input from this action - to have no existing input for the remaining workflow)
    - Choose the subfolder Public/iPhone/Photos
    8. Get folder content
    - Results no showing a folder and a file
    9. Move Finder items to trash
    However, I´m encountering a couple of problems with this workflow;
    Note1: If there are no pictures/movies to move (no output from #5 going into #6), the workflow will stop. Any suggestions on how to skip step #6 and go to #7 if there are no pictures/movies to move? Applescript within Automator? Setting up the workflow as iCal (regular basis), so would be nice if the workflow just completes without errors (i.e. still goes on with deleting other files on the folder, even if there are no pictures/movies to move).
    Note2: Step #9 result in a error "Finder could not move the specified items to trash". Has this something to do with a folder and some other file being attempted deleted from a NAS folder? Any suggestions for how to cope with this problem?

  • Move files accross directories

    Hi, I'm in Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production HPUX
    I have two Virtual Directories DIR1 (/data/dir1/) and DIR2(/data/dir2/) .
    DIR1 is filled with Source Code backup from all stored procedures, functions, etc.
    I generated the file name using DBA_SOURCE.OWNER||DBA_SOURCE.NAME||DBA_SOURCE.TYPE
    Is there any command that we can remove all files which are currently in DIR1 to DIR2 without having to retrieve the name again one by one from DBA_SOURCE.
    the goal is DIR1 will store today backup. DIR2 will store yesterday backup.
    this task will be run by schedule job every afternoon. both directories will be overwritten everyday.
    Please let me know if you have any solution about this.
    thanks

    Is there any command that we can remove all files which are currently in DIR1 to DIR2 without having to retrieve the name again one by one from DBA_SOURCE.Why does it matter not to loop through dba_source?
    Following should do the job you request:
    begin
       for c
          in (select dba_source.owner || dba_source.name || dba_source.type fn
                from dba_source
               where some_condition)
       loop
          utl_file.frename ('DIR1',
                            c.fn,
                            'DIR2',
                            c.fn);
       end loop;
    end;
     

  • How do you add cue points to a MOV file that Director 12 can read?

    I have just downloaded the Trial of Director 12 - and unless I can add cue points to video that it can interpret - I am not going to be able to achieve what I need to.  I've spent the last day and a half looking over the scant documentation provided by Adobe, and anything else I could find online - but the only answers that came anywhere near were for old versions using discontinued xtras.
    Please can anyone help? - I am using Windows 7 64 bit - CS6.
    Thanks in advance. :-)

    Probably too late for your project but...
    You can do this by using 3 sprites in addition to the SWF. In this example, I've named them "videoPlay", "videoRewind, and "videoStop". The SWF in this case was named "video."
    Apply this script to each of the 3 sprites.
    property mySprite
    on beginSprite me
      mySprite = sprite(me.spriteNum)
    end
    on mouseUp me
      case mySprite.name of 
        "videoPlay":
          sprite("video").play()
        "videoStop":
          sprite("video").stop()
        "videoRewind":
          sprite("video").stop()
          sprite("video").rewind()
      end case
    end

  • Can you move files within music library?

    I recently added a number of audio books I have on CD to the iTunes library expecting to be able to drag and drop them into the audio book folder, I can't. Now when I'm playing my pod on shuffle (which is usual) I get the occasional chapter of a book.
    Does anyone have a method to prevent this. I have followed all the instructions on moving files and although I have enabled audio books in iTunes it is not a choice when setting the default folder for storage.

    No, it doesn't have any storage.
    If however you subscribe to itunes Match then matched music and itunes store purchases will be available to play from the internet on AppleTV.
    AC

  • How do I add playback control to a .swf file in Director 11.5 (PLEASE HELP!)

    Hi,
    I am currently trying to add controls (play/stop/etc) to a .swf file within Director 11.5. The movie imports fine and plays perfectly, however there does seems to be built in options to add the control in the same way you would for a .mov.
    The .swf file has been created with controls and plays outside of director fine. When it is placed into director the controls disappear and leave a white space.
    Is there a step by step guide somewhere or can someone give me a step by step guide? I'm fairly new to director and won't know some of the terms etc....
    The movie is 30 mins long and requires the user to move to various points and pause the playback. I cannot change the format of the file either.
    Please let me know if you need any more info...
    PLEASE HELP, I have to complete this in 2 days.
    W

    Probably too late for your project but...
    You can do this by using 3 sprites in addition to the SWF. In this example, I've named them "videoPlay", "videoRewind, and "videoStop". The SWF in this case was named "video."
    Apply this script to each of the 3 sprites.
    property mySprite
    on beginSprite me
      mySprite = sprite(me.spriteNum)
    end
    on mouseUp me
      case mySprite.name of 
        "videoPlay":
          sprite("video").play()
        "videoStop":
          sprite("video").stop()
        "videoRewind":
          sprite("video").stop()
          sprite("video").rewind()
      end case
    end

  • How can I copy or move files with elements 10 organizer ?

    Hello,
    since a couple of days I use Elements10 Organizer under Windows 7 Home.  Since then Im testing how to come along with the product and it's features. Though I had many good impressions of many functions that work excellent I now have severe problems  to organize my workflow. The problem is: I can*t copy or move files or directories with the organizer and worse, I can't find files or directories that where copied, moved or renamed by Windows 7 Explorer even when I import or load the specified directory into the elements10  catalogue again. Off course I understand the elements 10 philosophy to have an image only one time within the data base and to arrange every collecting idea by tags and catagiories. Nevertheless there is a need to have sometimes a copy and also to know where the copy is and to manage it. Right now I find no way to handle these tasks by elements 10 organizer. I am a newbe on photoshop elements.
    I would appreciate if there is anybody who knows a solution to me. Thanks and bye, Woenni

    I am also having this same exact problem. Only some, and not all of the files on my external hard drive will copy. I get the "No Symbol" when trying to copy or move files.
    I am able to duplicate all files. I also can right click on a file and select copy. However on some files, I can't ever paste it (paste doesn't show up or is grayed out), drag it to another folder, or drag-and-copy it to another location or drive.
    The files are not locked and I have read and write permissions.
    The external that I'm trying to move and copy files from is a FAT32. Could that be a problem? How do I get my files off of this drive?
    *PLEEEEASE HELP!*

  • Move file with space in the filename - SM49

    Hi,
    I am using operating system command, MV, to move files across directories in application server. If the filename has spaces, this move fails. Can you please tell me if any escape character can solve this issue? I have already tried using backslash, single and double quotes.
    Thanks,
    Hema

    here's the solution:
    http://www.freebsd.org/cgi/man.cgi?query=file&apropos=0&sektion=0&manpath=FreeBSD+8.1-RELEASE&format=html
    The one significant difference between this version and System V is that
         this version treats any white space as a delimiter, so that spaces in
         pattern strings must be escaped.  For example,
            >10        string  language impress        (imPRESS data)
         in an existing magic file would have to be changed to
            >10        string  language\ impress        (imPRESS data)
    hope that helps

  • Linking moview files in director

    Hi all,
    I have managed to link 2 movie files in director together and am able to link back to specific frames etc etc.
    Currently one of my links from the 2nd move moves to frame 149 in the 1st movie.  Now the link works but just a split second before that the frame before that appears.
    Does anyone know if a way to get around this?
    Thanks
    Claire

    Hi Claire,
    Can you be a little more specific with some details? Are you linking Director movies or actual video files (ie Quicktime, WMV, SWF, FLV...etc). What lingo are you using so that Director knows what do do after your "movies" are done playing? This information might help us help you better.
    Rafa.

  • PSE 8 .mov files cannot play

    Hello.  I just upgraded my PC to Win 7 64bit, clean install.  I then added Itunes / quicktime.  Then I installed PSE8 and restored my catelog from a backup.  All is well except I cannot play mov files within PSE8.  My point and shoot takes HD vid clips with the mov extention.  When I try to play the video in PSE8 a window pops up stating I need to install quicktime.  Prior to Win 7, I had Vista 64 bit - and no problems with PSE7 or 8.  They all played videos fine.  I have reinstalled quicktime several times, without success for playing the videos.  I can play the videos fine outside of PSE8.  Quicktime is set as the default player.  I am stumped and upset about this.  I searched this forum and the knowlege base.  I found someone else with a similar issue, but no solutions.  Any suggestions?
    When I intalled itunes, there was a 32 bit version and a 64 bit version.  Would this matter?  I can't remember which version I had on the Vista 64 OS.
    Jason

    Solved:
    Added PSE8 as an exception in the Windows DEP area.  Rebooted.  Now works fine.

  • AE CS5 only see black when playing a rendered mov file in QT

    AE CS5 Mac 10.6:  After rendering a movie as Render:Best Settings / Output:Lossless I get an mov file (quite large, 193MB) - awesome thats what needs to happen.  Now upon viewing that mov file within QT, I get the timer (8 seconds) and the playhead scrolls those 8 seconds, yet I see nothing - only darkness and utter black.  Now on the flip:  when I render this same file as Best Settings / H.264 and play the mp4 wha lah you get a smooth playing video.  Downside, this file needs to be uncompressed and at the highest quality and playable in QT (a mov).  Is the file too large for my machine to handle playing?  Is this another QT vs AE bug?  Anyone please, input is as alway greatly appreciated.  Oh, 1 more piece of the puzzle: Pixel Aspect Ratio: D1/DV NTSC Widesceen (1.21).  This is a file to be played on an LED arena ribbon...
    Thanks

    >  Is there a codec missing from my AE?
    That wouldn't cause the file to play fine in some places and not elsewhere.
    This is a gigantic file in terms of horizontal pixel dimensions, and the data rate is quite large, too (nearly 200MB for only 8 seconds). I suspect some combination of QuickTime Player and the computer on which you're trying to play it (e.g., slow hard disks).
    Does it really matter whether this can play in QuickTime Player? We've seen that it plays in post-production software. Has the client tried playing it in the way that it will actually be played/used---i.e., on the LED screen at the arena?
    And, again, are you and they really sure that this huge losslessly compressed format is what is required? As I said before, this is very much not the kind of format that is intended for playback and distribution. Uncompressed files and files compressed with Animation are intended for purposes like use as intermediate files in post-production, not playback.

  • Why does the Yosemite Finder become unresponsive when moving a file within my USB Flash stick?

    Why does the Yosemite Finder become unresponsive when moving a file within my USB Flash stick? I have to Relaunch the Finder to get it working again.
    Background / other symptoms:
    The Flash drive in question has been formatted HFS.
    I get no error messages, including on the Console, and no sound indicators.
    I can copy files, using the Finder, from a hard-drive to the usb flash drive with no problem.
    Finder copying on this stick works just fine on my other Mac.
    I can move files within another (FAT32-formatted) USB flash drive.
    The quirky USB HFS Flash drive works fine on my other Mac.
    Outside of the Finder, I can use mv just fine to move the files on the HFS flash drive.
    If the HFS-formatted Flash drive were faulty, I would at least expect some sort of error in the Console app, but perhaps not from the Finder.

    Why does the Yosemite Finder become unresponsive when moving a file within my USB Flash stick? I have to Relaunch the Finder to get it working again.
    Background / other symptoms:
    The Flash drive in question has been formatted HFS.
    I get no error messages, including on the Console, and no sound indicators.
    I can copy files, using the Finder, from a hard-drive to the usb flash drive with no problem.
    Finder copying on this stick works just fine on my other Mac.
    I can move files within another (FAT32-formatted) USB flash drive.
    The quirky USB HFS Flash drive works fine on my other Mac.
    Outside of the Finder, I can use mv just fine to move the files on the HFS flash drive.
    If the HFS-formatted Flash drive were faulty, I would at least expect some sort of error in the Console app, but perhaps not from the Finder.

  • No Audio with *.mov files with Quicktime 7.4 (92)

    Today, I updated to Quicktime 7.4 (92) and tried to play the "Macbook Air - Guided Tour" quicktime *.mov file within a web browser (camino, firefox, safari) from the front page of apple.com and get no sound. However, when I play the new Macbook Air commercial, also from the front page. Sound works great. My system volume works fine.
    My conclusion is, it must be Quicktime itself, or the way the "Guided Tour" *.mov was encoded.
    Macbook Air Guided Tour (Large)
    http://www.apple.com/macbookair/guidedtour/index.html?size=large
    (No Sound)
    Macbook Air Ad
    http://www.apple.com/macbookair/#ad
    (Sound Works)
    Thanks!
    Scott

    I have a PPC G5 2@2ghz Tiger 10.4.11 1gb RAM, 1TB HD.
    I've tested all of my movies (unprotected MP4 files) and they do not play on my Mac. Further testing indicates they also doesn't play with QuickTime directly by finding the file in the iTunes folder using QT Player. This is NOT an iTunes problem as I've seen some people say on other boards but definitely a QT problem.
    The same "broken" movies do play from VLC so it's a problem with the QT plug-in and/or codec file(s). The "broken" also won't play in FireFox via the QT plug-in, reporting a QT logo with the flashing "?" error.
    I removed DiVX component and that did not correct the problem. All symptoms remained the same. I tried this because DiVX is famously bad for breaking things. Further, the old standby of deleting preferences files has not changed thing.
    Running QT player or Running iTunes and then opening the movie requires force quit. Running it from with a browser doesn't lock it up, though.
    Movies NOT in the iTunes directory were not affected and play normally leading me to suspect it might a problem with multiple causes.
    I hope this help someone figure it out.

Maybe you are looking for

  • Voice Control on iPhone 3G

    Does anyone here know why the voice control feature is exclusive to the iPhone 3G[s]? From the looks of it from the keynote, it's a pure software feature, and has nothing to do with the hardware at all. Actually, I'm not quite sure how it could possi

  • Please help on Date format

    Please go through the following... look at my parameters here: 1 select rtrim(name)||', '||rtrim(value) from v$parameter 2* where name like 'nls%' SQL> / RTRIM(NAME)||','||RTRIM(VALUE) nls_language, AMERICAN nls_territory, AMERICA nls_sort, nls_date_

  • My iMac does not recognize file for Facebook's new face-to-face calling feature, what's happening?

    I want to set up Video calling in Facebook. I get a message that Foxfire does not have application for file and can only save it.

  • Elements of WebUI by authorization object in user roles?

    Hi all, we are currently setting up a SNC scenario with SCM 5.1. I have some information about how to change the WebUI for the Responsive Replenishment, but by now I can only change it for all users. I would like to link certain Web buttons and scree

  • ITunes 11:how can i open 2 iTunes windows?

    In itunes 10 I could double click on the iTunes Store and it was open in a newe window, in iTunes 11 I could not find this feature. Can you pleas help me