Task scheduling and Status of copying files from one folder to other

In the attached VIs I am reading the content of a Folder from Harddisk and reading the contents of the FTP folder, then after comparing the contents or both folder I am copying the missing data to the HDD from FTP. I've two issues here,
1) Can any body tell me how I can check while VI is running , that how much data is copied from FTP and how much is remaining. 
2) What if I want to do this task each day but at particular time lets say 1 p.m each day this task should be perform but the vi will be in run mode all the time.
I hope I will get some suggestions and help from the members.
Regards,
Naqqash.
Naqqash
Attachments:
copying.zip ‏64 KB

Hi Naqqash,
An idea for to set-up, you could insert a seperate case structure where the Case Selector is based on a comparison between the "Get Date/Time String" or a timestamp and 1pm, and when that's true, the case launches a sub VI that checks this process, displays the result, then closes when done. In that subVI, go to File>>VI Properties>>Window Appearance>>Custom>>Customize and then check the box 'Show front panel when called'.
Regards,
Deborah Y.
LabVIEW Real-Time Product Marketing Manager
Certified LabVIEW Architect
National Instruments

Similar Messages

  • Tranfer file from one folder to other in application server

    Hi Champs,
       I want to tranfer files which are in error from one folder to another
    Source Dir: usr/feeders//interfaces/EP1/payrollact/Resourcelink
    Destination Dir: usr/feeders//interfaces/EP1/payrollact/Resourcelink/reprocess
    The coding needs to be written in my ABAP report.
    I have an idea that this can be done through SM69, by creating code in UNIX and then using FM SXPG_COMMAND_EXECUTE in our ABAP code.
    I went to TCode SM69 and have created a Command name but dont know where to put the file path of source and destination and also dont know how this can be used in FM SXPG_COMMAND_EXECUTE.
    Please can some one guide me with how to do.
    Regards,
    Nishant

    Hi Nishant,
                try this.
    PARAMETERS: Source_file TYPE SAPB-SAPPFAD
    default '\folder1\abc,pdf'.
    PARAMETERS: target_lfile TYPE SAPB-SAPPFAD
    default '\folder2\abc,pdf'.
    START-OF-SELECTION.
      CALL FUNCTION 'ARCHIVFILE_SERVER_TO_CLIENT'
        EXPORTING
          path                      = source_file
         TARGETPATH        = target_lfile
    EXCEPTIONS
       ERROR_FILE       = 1
       OTHERS           = 2
      IF sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • I want to create a "batch file" that will copy files from one folder into another, overwriting what is currently in there.

    I've got a game that has a folder with Saved Games (Okay, it's Minecraft). I don't always have my external drives because I take my Mac Mini from my house to my friend's house and of course back after we finish playing.
    There are times where I want a back up so that if something happens we can restore it as easily as possible.
    What I've been doing is copying the particular saved game and pasting it to my desktop, replacing the new backup over the old backup. I'd like to be able to create a "batch file" so that I can just double-click on it and it will copy and paste overwriting the old version.
    Since this is being automated I've been thinking. It would be nice to have 10 backups which I would like to have numbered from 1 to 10 (and not 0 to 9).
    I'd like the batch file to delete backup 10 then rename backup 9 to 10 and 8 to 9 and so forth until backup 1 becomes backup 2 and then my live copy then gets copied to my desktop. I guess that one really doesn't need a number after it. It can have the exact same name.
    Don't worry about automating the restore. I just want the backup part of it automated. I'm not a UNIX guy but I've tried to figure it out and it is just not working. So ... if someone out there can reply with a solution for me that would be great.
    Extra credit for automatically compressing the backups with the built in compression utility so my backups use less space.
    Thanks in advance.

    I have another psd (adjustment_layer.psd) file that only has one layer, and it is an adjustment layer. . 
    That is possible. An adjustment layer must be over a layer. The layer that it is over can have its visibility off but there needs to at least two layers in your (adjustment_layer.psd) file.  For you can not have and adjustment layer without a layer to adjust.
    Are all your PSD file the same in size  x px by y px at z DPI?
    It would be easy to create an action just to add the adjustment layer you want if your (adjustment_layer.psd) file adjustment layer, layer mask is a reveal all or hide all mask. You can Batch the action or use the Image processor script and have it include your action that add the adjustment layer  you do not need to write a script.
    I would also record that action to add the adjustment layer clipped to the layer below. There is a bug in CS4 and CS5 Action Player. Actions that have recorded adding adjustment layers to be applied to all layers below may play incorrectly.  You will have to pay to get a fix  for this bug for Adobe is not going to apply a fix the the current releases of Photoshop. The bug is so far slated to be fixed in CS6 time will tell.

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

  • How can i copy files from one external hard disk to another using macbook pro with retina display

    How can i copy files from one external hard drive to another using macbook pro with retina display?

    That's odd - if you open Disk Utility (Applications->Utilities) and select the disk(s), how are they formatted? If you're only going to be used with your Mac, they should be formatted as "Mac OS Extended (Journaled)".
    Clinton

  • How do you copy files from one user to another

    How do you copy files from one user to another user on the same machine?

    open your home folder in finder move file to public, log into other account, click the go tab on the finder menu, select computer, your hard drive (Macintosh HD Default)>Users, the origonal user> public and drag that file to your specified folder.
    hope it works
    Craig.

  • In finder cannot easily change files from one folder to another. Drag and drop does not work. There should a cut and paste feachure.

    In finder I cannto easily change files from one folder to another.  There should de a cut and paste for this.  Not drag and drop. thanks P.

    paulfromqueretaro wrote:
    In finder I cannto easily change files from one folder to another.  There should de a cut and paste for this.  Not drag and drop. thanks P.
    OS X is all about keyboard shortcuts.
    To cut       cmd+x
    To copy     cmd+c
    To paste    cmd+v
    With the Mouse, hold command and drag to your destination.

  • I have an iMac (OSX 10.9.2) and a Macbook (same).  I want to copy photos from one to the other.  how?

    I have an iMac (OSX 10.9.2) and a Macbook (same).  I want to copy photos from one to the other.  how?

    I'm sorry.  I got a little off-the-wall there.
    I want to have the same iPhoto files on both machines.  A few days ago I spent several hours swapping photos back and forth until I had one event with identical picture files on both.  Yesterday I scanned some old photos into the Macbook.  Today I wanted to copy them to the iMac.  I could not remember what I had done a few days ago, so I spent a couple of frustrating hours trying to either remember or find another way, to no avail.  I have no idea what I did right before; I only recall that it was pretty easy.
    I didn't write anything down.  I used to do that, but what I do is so intermittent that by the time I want to copy pictures again either (a) the app has been updated and the old way doesn't work (b) I've lost the paper with the notes on it or (everything seems fine but it just doesn't work.  So I gave that up.
    Yes, I do want both iPhoto libraries to be the same.  The Macbook is the one with the scanner and I download from my camera on the iMac, so I need to be able to move photos from one to the other, I think.

  • Windows 2008 : How to Restrict Users to Copy file from Shared Folder

    Hello All,
    I need to Restrict Users to Copy file from Shared Folder. Please let me know is there any method to achieve this requirement.

    If user have Read permission, they can copy it. So actually you cannot restrict user from copy your files if they could read/edit.
    Some programs could help restrict users from edit/modify/copy the content of their files such as Office files, PDF files etc as Oscar said above.
    TechNet Subscriber Support in forum |If you have any feedback on our support, please contact [email protected]

  • I recently bought two iMac quad core i5 processor speed 2.5 Ghz. Every time I use Air Drop and I send a file from one iMac to the other, a black curtain drops and I am asked to restart the computer!!! What can I do?

    I recently bought two iMac quad core i5 processor speed 2.5 Ghz. Every time I use Air Drop and I send a file from one iMac to the other, a black curtain drops and I am asked to restart the computer!!! What can I do?

    That's a kernel panic and indicates some sort of problem either with the computer's hardware or software. Visit The XLab FAQs and read the FAQ on diagnosing kernel panics. It would help to post the panic log: Mac OS X- How to log a kernel panic.
    Meanwhile, try booting the computers into Safe Mode then restarting normally. If this is simply a disk repair or cache file problem then this may fix it.
    You can also try creating a new admin account on each computer then booting into the new account. This would help determine if the problem is related to a bad file in the user accounts.

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

  • I need to upload my files from one directory into other directory.

    i need to upload my files from one directory into other directory.( all its contents,folders,sub folders, files etc)
    for this task
    suppose my source folder is C:/test/test1/test2/test3
    and my destination is D:/
    first i have to check whether my dest dirctory already contains source directory..and its files
    if it contains the same structure then i have to replace the destination dir structure to source dir structure( to upadte changes)
    if it(dest dir) not contains source dir ..means it doesn't contain source folder then
    i have to create same source folder directory structure ( test.test1/test2/test3...) at destination(D:/) and copy all its contents frm source directory...
    ( means i don;t want to create manually same dir structure as source at destnation dir to copy all contents)

    I believe you need to read up on the class File.java (it comes with java).
    Some examples:
    File file = new File("C:/myDirectory");
    if(file.isDirectory())
    System.out.println("this is a directory");
    if(file.isFile())
    System.out.println("this is a file").
    You will then need to read up on other classes to read/write to the file such as FileReader and FileWriter.

  • 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

  • Moving files from one folder to another caused freeze

    I now have a list of files stuck in the center of my screen.
    I'm sure a reboot will fix this (I hope!) but I thought it was a bug worth reporting.
    All I did was move a copy a collection of files from one folder to another folder.  It made the "move" sound, and the files have been copied, but something clearly went wrong

    Have java.io.File objects pointing to the three folders. Get the list of all the files in the folder. Start a loop and check if the filename ends with Data.dat. If it is so then copy file to the final folder.
    To Copy file you can use any of the two approaches.
    1. You can read that file as byte stream (java.io.FileInputStream) and write it to the other folder as bytes (java.io.FileOutputStream).
    2. You can use shell commands to do this. (java.lang.Runtime.exe() method)
    Ali Ahsan

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

Maybe you are looking for

  • I want to upgrade my Mac Os X 10.5.8, how do i do this?

    I have Mac OS x 10.5.8 But i want to upgrade it I want to be able to get Facetime etc.... I dont know what to upgrade to or how... HELP please!

  • I want to migrate from MacBook Pro (Tiger) to Macbook Air (brand new) Lion. How can I migrate?

    Hello. I have a old macbook pro running tiger on it, and I recently purchased a macbook air. I want to use setup migration so migrate all my settings, applications, etc to the new macbook air. However, both laptops don't have firewire port. I do not

  • Playing music across accounts?

    I asked this question last March when I first got my Mac, but no one had an answer. I'm posting again, since it's starting to become a point of contention between my wife and me. We've set up accounts for each of us on the Mac. Is there any way to co

  • Customer sales return for credit

    Hi, What steps do I need to take to process a return from the customer for credit? Please give me step by step instructions and the transaction codes. The returned material is a configurable (make to order) material. How can I tear it down, return th

  • How to backup with Time Machine for complete clean reinstall of OS

    My iMac has been getting slower and slower as the months go by and with each new software update. It used to be a lot faster than this when it was new. I'm thinking the best solution might be to do a complete clean reinstall of the OS. My question is