Move files from source to destination directory

I would like to copy files from source directory to destination directory, which have a creation date lower than p_date. p_date is a entered value of a forms field.
source:
c:\tmp\my_b.pdf 10.10.06 04:21
c:\tmp\my_c.pdf 10.10.06 04:20
c:\tmp\my_d.pdf 09.10.06 01:35
c:\tmp\my_e.pdf 05.10.06 02:13
c:\tmp\my_f.pdf 01.10.06 00:20
User enter the value: 09.10.06 09:35
destination should be:
f:\tmp\my_d.pdf 09.10.06 01:35
f:\tmp\my_e.pdf 05.10.06 02:13
f:\tmp\my_f.pdf 01.10.06 00:20
win_api_utility.move_file move all files from source to destination, but only I need a part of them. I have installed Forms 6i and Windows 2000. Does anybody have an idea?
Best regards,
tom

Hi Tom,
In a Forms 10g environment you would probably use a Java component. On a c/s environment I would issue a host command. Although the windows 'copy' statement has no 'date' flag, the windows 'xcopy' statement has. Type 'help xcopy' in a command/dos box for the syntax/flags for the 'xcopy' statement.
Hope this helps,
Matthieu de Graaf

Similar Messages

  • Ssis - move files from one directory to another and rename destination file if present

    Hello,
    How is it possible to move files from one directory to another directory and if the file already exists in destination directory then rename it?
    Thanks

    1. Use a foreach loop with file enumerator pointing to first directory.
    Inside loop have a ssis variable of type string to get filename (@[User::FileName])
    Choose option as Fully Qualified in loop
    2. Add another variable called @[User::DestFileName], set EvaluateAsExpression true for it and set expression like this
    REPLACE(@[User::FileName],<source directory path>,<destination directory path>)
    put actual paths in above expression in your case
    and another variable called @[User::RenameFileName], set EvaluateAsExpression true for it and set expression like this
    REPLACE(@[User::FileName],".","_old.")
    3. Create a boolean variable say @[User::FileEXists]
    4. Add a Script Task inside the loop and pass @DestFileName variable in ReadOnly mode and FileExists in ReadWrite mode
    Inside Script Task write code as per below
    http://blog.dbandbi.com/2013/11/13/check-file-exists-ssis/
    5. Add File System Task choose operation as Rename File, Select IsSourcePathVariable as true and select @[user::DestFileName] variable and IsDestinationPath variable as true and select @[user::RenameFileName] variable
    6. Choose ExpressionAndConstraint option for precedeence constraint from ScriptTask to above File System Task and choose constraint as OnSuccess and expression as
    @FileExists == True
    7. Add another File System task with operation as Move File Select IsSourcePathVariable as true and select @[user::FileName] variable and IsDestinationPath variable as true and select @[user::DestFileName] variable. Join Script Task as well as
    File System Task above to this task and choose constraint as OnSuccess and Multiple Constraint option as Or (dotted line)
    Then once executed it will work as per your requirement
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to move files from one folder to another folder in webdynpro java for sap portal

    Dear Experts,
    I wan to move files from one folder to another folder in SAP portal 7.3 programmatically in webdynpro java.
    My requirement is in my portal 1000 transport packages is their. Now i want to move 1 to 200 TP's into Archive folder.
    Can you please help me how to do in through portal or wd java ...
    Regards
    Chakri

    Hello,
    Do you know what the difference between copying a file this way :
    ** Fast & simple file copy. */
    public static void copy(File source, File dest) throws IOException {
    FileChannel in = null, out = null;
    try {         
    in = new FileInputStream(source).getChannel();
    out = new FileOutputStream(dest).getChannel();
    long size = in.size();
    MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, size);
    out.write(buf);
    } finally {
    if (in != null) in.close();
    if (out != null) out.close();
    ================SECOND WAY============
    AND THIS WAY:
    // Move file (src) to File/directory dest.
    public static synchronized void move(File src, File dest) throws FileNotFoundException, IOException {
    copy(src, dest);
    src.delete();
    // Copy file (src) to File/directory dest.
    public static synchronized void copy(File src, File dest) throws IOException {
    InputStream in = new FileInputStream(src);
    OutputStream out = new FileOutputStream(dest);
    // Transfer bytes from in to out
    byte[] buf = new byte[1024];
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    in.close();
    out.close();
    And which is better? I read up on what each kind of does but still a bit unclear as to when it is good to use which.
    Thanks in advance,
    JavaGirl

  • Every time I try to upload MOV files from my iphone 5s onto my adobe premiere elements on windows 8 i get 'the importer reported a generic error'

    every time I try to upload MOV files from my iphone 5s onto my adobe premiere elements on windows 8 i get 'the importer reported a generic error'

    jade harding
    What version of Premiere Elements are you using on Windows 8.1 64 bit? For now I will assume Premiere Elements 12 in a NTSC set up.
    Your iPhone 5s video is expected to be 1080p @ 30 progressive frames per second? Do you confirm that? Because of the source of your video, it is highly likely that you are dealing with a variable frame rate.
    Please give the following a try to see if you then have an "importable" product to take into Premiere Elements presumed 12/12.1.
    Download and install the free HandBrake program.
    http://handbrake.fr/
    Import your video file into the program.
    Make sure you browse to and set Destination (suggested Desktop location)
    Go to the Video Tab and set
    Video codec = H.264 (x264)
    Frame Rate = 29.97
    put a dot next to Constant for the Frame Rate
    Click on the Start at the top left of the workspace
    Wait for the "Queue Finished" to appear in the progress bar at the bottom left of the workspace.
    Then see if this H.264.mp4 (1920 x 1080 @ 29.97 progressive frames per second file can be imported into Premiere Elements 12 project with a manually set project preset of NTSC/DSLR/1080p/DLSR 1080p30@ 29.97.
    Details for setting manual project preset can be found in
    ATR Premiere Elements Troubleshooting: PE11: Accuracy of Automatic Project Preset (New Project Dialog) Setting
    The details that I have posted in this reply are customized for Premiere Elements and should work fine for you.
    We will be watching for your results.
    ATR

  • Move files from one server to another

    <cfset spath = "\\ght4\clients\abc\new\256\">
    <cfset dpath ="\\ffg\clients\def\new\kij">
    <cffile action = "move" source = "#spath#" destination = "#dpath#">
    It generating an error Is there a way to move files from server to another in coldfusion

    You talk to your network administrator(s) and ask them what permissions have been assigned to the user that the ColdFusion service|demeon is running as.
    P.S.  By default, on a windows machine, ColdFusion runs as a "localSystem" user, which usually has *no* permissions to other systems.

  • How do i move files from mac mini to external hard drive

    how do i move files from mac mini to external hard drive

    The simplest method would be to drag & drop the files you want to move to the external drive using the Finder. Just open both the source and destination locations in separate Finder windows.

  • How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    What OS are you running.. this is usually only a problem in Mavericks.
    If so I recommend you mount the hard disk manually..
    Use Go, Connect to server.
    Type in the IP address if static.. eg
    AFP://10.0.1.1
    Or the name.. but you will have issues unless the name is short, no spaces and pure alphanumeric.. if you are using bad names.. fix it by a full factory reset in airport utility and give it all names that comply to the above.
    Type in
    AFP://TCname.local Where TCname is replaced with the actual name.
    You will be asked for the password the first time which is public unless you changed it.. please remember to save this in the keychain.
    Copy files then to a new directory you create on the TC.. do not place files inside the TM sparsebundle. Nor directly under the main directory.

  • Playback artifacts with MOV files from GH3

    I have successfully played and edited MOV files from GH3 on this computer, but I suddenly (End of August) started having rendering artifacts in preview, after rendering in the timeline monitor, and on export.  I've tried several different MOV files with the same issue.  I've uninstalled and reinstalled Quicktime.  When I first open quicktime after an installation, it plays the source files cleanly. But after I run Premiere Pro, I can't get clean playback in either PP or QT.  I've disabled the Nvidia Drivers for the GeForve GTX770 video card and still get the artifacts.
    Any ideas about what might be going on?

    Thank you so much for your reply.
    Yes, I have CUDA installed.  I see the artifacts in the source monitor as well as the timeline monitor.  I have tried exporting in several formats and the artifacts appear randomly in all outputs.  I can get a clean export of the same files and projects from my laptop - HP Zbook.
    Quicktime Player also displays the artifacts, but when I uninstall and reinstall Quicktime the display is clear until I try to edit again in Premiere. Then the artifacts start to appear randomly in Quicktime Player as well.
    Windows 7Pro  64bit, Intel i7 3.4 Ghz processor, 16 GB Ram, Nividia GEForce GTX 770 video card.
    Screengrabs:

  • Is there a way to exclude files from source paths using patterns

    Hi
    Does anyone know of any way to exclude files from source paths using patters rather than individually selecting the files? UI doesn't allow to specify any pattern. But if you look at the jpr file there are other places where patterns are allowed. Can the same pattern be copied and applied to excluded files?
    Pat

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

  • Move files from test environemnt to Dev environment

    we need to copy a set of dump files from the Test DATA_PUMP_DIR directory to the DEV DATA_PUMP_DIR directory. ( the files are available in some specified path here for both the environments.)
    so please let me know how to resolve the above task within short span of time.
    Thanks,
    Vas

    Nothing to do with database install - also posted duplicate here - Move files from test environemnt to Dev environments - locking thread

  • Unable to import movie files from iphoto '08 into imovie HD

    I have recently bought a 2008 macbook (2.2 GHz) and have recently downloaded imovie HD in addition to owning iLife '08 due to its extra capabilities. I have found that I am unable to import any of my movie files from my iphoto library folder as it seems to need to open the actual iphoto application before the files can be accessed. In addition, when not using any specific program it would be nice to be able to access my photo/video files within the iphoto folder without iphoto automatically opening as the default viewer.
    Any ideas??!! Thanks.

    ahostmadsen wrote:
    .. and I import AVI video clips directly without converting to .dv, without problems.
    lucky you.. .avi is just a container, no 'format'/codec .. I can show you dozends of .avis, which will NOT import into iMHD6, due to being playback-codecs, not convertable by the underlying Quicktime engine into separte, editable audio+video streams ..
    .. If you convert to .dv, the size just blows up.
    dv is 13GB/h and a codec meant for editing; e.g. it stores every frame (video=30 frams/sec) of a recording, as mpegs usually doesn't do so.. = your Mac has to estimate content, when converting and 'recovering' the content = lossy process.
    iMHD6 is a dv-editor; the mpeg4 feature is only a toy, to spice up iSight recordings.. for sure, the QTengine can convert a lot, but too much conversion (from one lossy codec, e.g. divx, into another, e.g. mp4) means a (dramatic) loss of pic quality..
    my 5€ cents ..

  • After I import a movie file from the camera memory card, Imovie 10.0.1 acts as if the memory card is empty though I know it isn't.... I can't import that file to iMovie again.. is that the way it worksnow?  Thank you, Filippo

    On IMac 10.9  After I import a movie file from the camera memory card to Imovie 10.0.1 it acts as if the memory card is empty though I know it isn't.... I can't import that file to iMovie again.. is that the way it works now?  Anyone know?  Thanks, Filippo

    I would like to know this too. I imported a lot of files, then Imovie crashed. I went back in and they are not in imovie at all.
    I reconnected the camcorder to import again and though they are still on the camcorder, I no longer see them in the available list of files to import. I'm sure there is some sort of simple setting somewhere that reveals all files even if it thinks they are imported.
    Thanks

  • 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'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

  • 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)

Maybe you are looking for

  • Weblogic Startup not properly: ConfigurationException

    Hello, i hope someone can help me. i suppose it is a kind of newbie question, cause thats what i am, a newbie in weblogic. The server throws the following error when starting up with my specific project, maybe someone knows what it means: (Thanx in a

  • Binding UINamingContainer to f:subview

    Hello again, till now I have added all dynamic created components from my bean to a HtmlPanelGrid and used <h:panelGrid binding="#{loginBean.mainMenu}" />to bind them to my page. But now i must not use a Form because the menu should be in a DIV and b

  • Bluetooth Samsung Intensity III and Mac 10.8.4

    I got the phone and the Mac to pair, but never got them to maintain a connection.  They both discover, but the Mac can't browse the phone. I want to transfer my pictures from the phone to my Mac. Any  ideas on how to do this successfully? Thanks in a

  • Transfer routine

    Hi Folks I am trying to populate an info object (field) which is not part of the Data source but is part of the transfer structure and the ODS. This field is being populated from an Info object master data table. but i am not able to load this info o

  • SAP netweaver developer studio - deployement faild

    i am a beginner with developer studio and i am facing the following problem i have create a simple application for handheld  and when i deploy my application  from application explorer the system issue a message the the deployment failed .... java.io