How to monitor changes in a directory

Hai
I want my program to listen to a directory and monitor changes made.
That is , when ever a new file comes in the directory , i need to copy that file to another directory specified.
How can i do it ?

poling seems to come to mind and keep track of what was in the directory the last time. Look at the File object, you'll be using it a lot.

Similar Messages

  • How can I change the source directory in Netbeans

    Hi there,
    Thanks for reading.
    How can I change the source directory in Netbeans so I can have a src directory?
    Thanks,
    Lorenzo

    Forgot to say Netbeans 3.6.
    thanks

  • How i can change temporary files directory on firefox 3.6.8 because my system disk has little space

    how i can change temporary files directory on firefox 3.6.8 because my system disk has little space

    In Firefox,the equivalent ofInternet Explorer temporary internet files is the cache.
    You can change the location of the cache by adding a new preference, for details see http://kb.mozillazine.org/Browser.cache.disk.parent_directory
    If you are not confident about adding the preference, I know of one add-on that lets you specify the path of the cache. [https://addons.mozilla.org/en-US/firefox/addon/13288/ Super Tab Mode] is an add-on that enhances Firefox tab handling, but also has a section for changing the location of the cache

  • How can I change my "Home directory" folder name?

    Hello, everyone.
    I was given a pre-owned MacBook Pro that's running OS 10.6.8.  How can I change the name on the Home directory folder?  I was able to change the Administrator Account settings, but the Home directory still shows the previous owner's name.  It bothers me a bit, though, to see the previous owner's name still come up on the Home folder.
    I came across the instruction listed below, but I can't get past step 4.  It instructs me "rename it just like I would rename any folder."  I can't seem to rename it, though.  The cursor doesn't come up when I click on the folder name.
    For Mac OS X v10.5 or later
    Enable the root user.
    Log in as root.
    Navigate to the /Users folder.
    Select the Home folder with the short name you want to change, and rename it just like you would rename any folder. Keep in mind that the shortname must be all lowercase, with no spaces, and only contain letters.
    Use the Users & Groups pane (Accounts pane in Mac OS X v10.6.8 or earlier) in System Preferences to create a new user with the Account name or Short Name that you used in the previous step.
    Click OK when "A folder in the Users folder already has the name 'account name'. Would you like to use that folder as the Home folder for this user account?" appears. Note: This will correct the ownership of all files in the Home folder, and avoid permissions issues with the contents.
    Choose Log Out from the Apple menu.
    Log in as the newly created user. You should be able to access all of your original files (on the desktop, in Documents, and in the other folders of this Home).
    After verifying that your data is as expected, you can delete the original user account via the Users & Groups pane (Accounts pane in Mac OS X v10.6.8 or earlier).
    Disable the root user.
    Any help would be much appreciated.

    Hi everyone,
    I followed this https://discussions.apple.com/docs/DOC-3872
    and got to the stage of having renamed my Home folder with the new name but the Home folder is STILL designated to the old name?
    When I try and create a new user with the new name, I don't get asked if I'd like to use the existing name as Home folder, I get told I can't use the newname because it exists already - thats the end of it - no further options.
    So to clarify - I now have oldname folder STILL assigned as Home folder. A newname folder with all my stuff in - apps, desktop, etc etc but this is just another user folder.
    Interestingly at login stage, the oldname folder isn't an option. I think I've confused the system somewhere by titling things differently at some stage in an attempt to rename Home folder.
    I'm running Mountain Lion (as of yesterday) and because I've kinda lost the use of my User folder as the Home folder, can't get to my Time Machine. I'm in trouble but I'm trying not to panic. Would appreciate any help!
    Laurie

  • How do I change the "Default Directory" associated with my subscription?

    I was recently added as an administrator for a client's Azure subscription.  This has caused his account AD to be the default directory I see when I log in.  So every time I log in I have to open the Subscriptions menu and change the FILTER BY
    DIRECTORY option.  How can I make my own directory the default directory when I log in?
    Note: there was an almost identical question back in Dec 2013 and the solution was to have the other user remove you as an administrator.  The marked answer suggested the questioner read some arcane description of Azure subscriptions and Active Directory.
      I need to remain an admin for the other account and the referenced document had nothing useful to say about my problem.
    Anyway, thanks in advance for your help.

    Hi,
     Thank you for posting.
     I hope you find the following link helpful.
     http://itproguru.com/expert/2014/07/change-azure-subscriptionsgo-directly-to-a-specific-subscription-in-windows-azurestep-by-step/
    Regards,
    Nithin Rathnakar.

  • How do I change the "Default Directory" or default subscription when I log into the portal?

    When I login to the Windows Azure portal it redirects me to a URL like:
    https://manage.windowsazure.com/@{SomeOneElsesAccount}hotmail.onmicrosoft.com?whr=live.com#Workspaces/All/dashboard
    If I look at the URL I can see the email of a friend's account not mine.
    If I click on the Subscription drop down his account is listed as the "Default Directory" even though I no longer have access.
    How do I remove his account/subscription/directory from my account?
    How do I change my subscription as the default, so that when I login the URL is more like: https://manage.windowsazure.com/@{my email}.onmicrosoft.com#Workspaces/All/dashboard
    I have also
    asked this here...
    See the image below.  The one listed as "default directory" I no longer have access to.

    Hi Gary,
    Did you use the organizational accounts ? I guess your login account was added by "SomeOneElsesAccount" . When we used azure AD account to logging into portal, the url show the "SomeOneElsesAccount" message on the portal. If you didn't
    show other user message, I suggest you could use Microsoft account to login. Also, I suggest you read this document (http://msdn.microsoft.com/en-us/library/windowsazure/hh531793.aspx )
    firstly.
    Any question, please let me know.
    Thanks
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I change the extension directory?

    I installed JBuilder and it changed my extension directory from the default:
    JAVA_HOME\jre\lib\ext
    to:
    JBuilder8\jdk1.4\jre\lib\ext
    how do I change it back?

    nevermind, found a solution:
    uninstall the jdk and reinstall.
    it sets it back to \jre\lib\ext
    (there's still the question of how to change the extension directory arbitrarily, but i'm not going to lose sleep over it)

  • How do I change an incorrect directory path?

    I have found several cases where my directory path is incorrect.  I first discovered this when I shortened the names of the directory so I would not run into a error message that the file name was too long.   The directory path is still using the old names so this did not solve my problem.   I have also found cases where the directory path includes subdirectories that are not in the path.  
    Does anyone know how to resolve this problem?

    Not without a clearer and more complete description of what it is you are doing.

  • How I can changes oracle binary directory

    I just upgrade sucessful from ver 9.2.0.4 to 9.2.0.7. this issue is cousmitic the binary directory still call 9.2.0.4 instead of 9.2.0.7. there is easy way to solve this issue. I would like to call this binary directory call 9.2.0.7
    any advise please thanks

    Renaming of ORACLE home technically possible. However for the following reasons it is not recommended.
    1) There are certain files under ORACLE_HOME which stores hardcoded ORACLE_HOME name value.
    2) Inventory information might become obsolete and future patch installs may not possible.
    You can also think about creating a soft link for 9.2.0.4 as 9.2.0.7 This way it will be easier and less complicated for you!
    -Ramesh

  • How to track changes on the directory server using the ChangeLog facility?

     

    The ldap search filter should read "cn=changelog"
    So the query should be something like
    ldapsearch -b "yourbase" -D "yourbind" -w passwd -s sub
    "cn=changelog"
    To make the output readabel, you may need the option -o if you use the iDS ldapsearch. If you use the Sun ldapsearch, the -o is not needed.

  • How to change the default directory from within SQL*Plus ?

    Hello,
    I want to change the default directory directly from within SQL*Plus to be able to launch my command files with simple instructions like :
    @my_command.sql
    If I haven't launched SQL*Plus from the directory containing the file my_command.sql, how do I change the default directory to the directory of my command files ?
    I've searched through the Oracle documentation, there's no SET DEFAULTDIR or something like that. When I do a SHOW ALL, there's no variable containing the default directory.
    If you have an idea...
    regards,
    Jérôme.

    Hi Jérôme (J鲴me ?),
    You cannot directly do that, but you can use @@ instead of @ to run subscripts in the same directory as the superscript
    # head /tmp/tl30/xxx/[xyz].sql                    
    ==> /tmp/tl30/xxx/x.sql <==
    prompt call y
    @y
    prompt call z
    @@z
    quit
    ==> /tmp/tl30/xxx/y.sql <==
    prompt i am in y
    ==> /tmp/tl30/xxx/z.sql <==
    prompt i am in z
    # pwd                                             
    /root
    # sqlplus -s scott/tiger@lsc62 @/tmp/tl30/xxx/x.sql
    call y
    SP2-0310: Datei "y.sql" konnte nicht geöffnet werden
    call z
    i am in zKind regards
    Laurent Schneider
    OCM DBA

  • I am trying to update my phone software and it says there is no enough space to update, how do i change the default selected drive on windows?

    when trying to update my iPhone, i get a message that i have a full drive and i should delete some data, which i assume iTunes is using by default my C drive which is in fact full, how can I change the save directory to be able to save and change and update my iPhone? thank you

    What does the message say exactly? Are you sure it's not telling you the phone has no more space?

  • Change STMS transport directory

    Hi gurus,
    I have a High Availability SAP ERP system (SAP ECC 6.0) as PRD server. We used an old server for DEV system (Host name = sapdev). These two servers belonged to a STMS domain.
    Recently we made homogeneous system copy and created a new Development (PRD copy) system to a new server. the new servers host name is AthinaDEV. We created a new STMS domain, joining the new DEV and PRD systems. The problem is that transport directory in PRD seams to be 
    sapdev\sapmnt\trans\ and in DEV seams to be
    athinadev\sapmnt\trans\. In both servers in Transport Tool I have configured TRANSDIR as
    athinadev\sapmnt\trans.
    How can I change the transport directory to PRD to look
    athinadev?
    Thanks in advanced

    OK,
    I added the profile parameter DIR_TRANS with the correct path to both systems and now both systems use
    athinadev\sapmnt\trans as transport domain. All seems to be correct now (all checks return success) but I can't transfer any request.
    For example: I have created a test ABAP program. I have created a request for that program. I released the request from SE11 transaction succesffully. But when I use STMS transaction I have the following situation: in import overview I can see both systmes and 1 request waiting. When I double click on PRD to enter to import queue the list is empty.
    I have cheked the permissions on trans folder and seems to be ok (prdadm has corrrect permissions).
    The two systems has connected with transport routes.
    Can anyone help me find the solution?

  • How to change default installation directory sapinst_instdir TO other drive

    Hi,
    I am installing ECC 6.0 and have enough space in my disk for data files.
    I have alloted 20GB in C: drive which also comprise of Operating System.sapinst_ instdir directory grows more than 10GB and due to lack of space installation fails. How can i change th default sapinst_instdir directiory from C drive to other drive. can i use any software to change partition? ( with OS windows server 2003)
    I have also encountered an error at import phase of first job and after changing *.TSK file the installation proceeds. will this cause any serious problem.
    regards,
    Anand

    Hello,
    I understand from ur post is u want to create the instalaltion logs on another directory instaed of C:\ drive....if so u can follow the procedure as describe below..
    create temp directory in any other drive called D:\ drive...
    go in to that temp drive.....
    and fire the executable from that temp directory.....if u r executable in e:\ drive then....
    d:\temp>e:\installer\insatall.exe
    the above command creates all logs one by one in temp dorectory of D:\ drive instaed of c:\ drive..
    Thanks

  • How to change default compile directory tmp_ejb?

    Dear all,
    Someone knows how to change the default directory "tmp_ejb...." in WebLogic Server
    7.0?
    This is the default directory where WebLogic Server 7.0 generates and compiles
    the EJB's declared in config.xml.
    I try to specify the attribute TmpPath="ANOTHER_TMP_LOCATION_DIRECTORY_FOR_EJB"
    in the EJBContainer node but still doesn't work.
    The same thing happens when I test this attribute on EJBComponent declaration.
    Someone knows if there is an enviroment variable that specify this tmp_ejb location
    path?
    It's false that the tmp_ejb is located where the config.xml file is placed.
    I have 3 weblogic servers and they haven't the same behaviour.
    Someone can help me??????
    Thanks.

    I ran into the same problem and was wondering if you got an aswer the question you posted in BEA's news group: "How to change default compile directory tmp_ejb?
    Thanks

Maybe you are looking for

  • ORA-01006: bind variable does not exist

    Plz, if any body is able to handle this tell me the solution SELECT job_ticket_mst.N_LINENUMB, job_ticket_mst.V_CVDPL_NO, JOB_TICKET_MST.V_STAMP,Common_mst.V_DESCRIPTION, JOB_TICKET_MST.D_JOB_DATE, JOB_TICKET_MST.V_JOB_TYPE_CODE, JOB_TICKET_MST.V_CUS

  • Mail in Mavericks - "A" with a square around it??  html formatting?

    using mail mavericks on a macbook air that's 2 weeks old. what i presume is copied text in an email forward is being formatted with the letter A surrounded by a square. anybody seen this?  here's a screenshot.  thanks! https://www.dropbox.com/sh/tzr7

  • Reporting agent problem - need help

    Hi Gurus, I have schedule a job everyday for reporting agent. Which includes 6 reports init with precalculated webtemplate. The reason to use this is that everyday morning the job will run before users use those reports and it will add that in cache

  • Repost: abs positioning probs in IE

    I have a div (#header_wrap div#logo) that is postion:absolute and it seems to be affected by (i.e. pushed to the right of) a float (#header_left) that appears further down in the continer(#header_wrap) ... that doesn't seem to make sense. Any thouhgt

  • Urgent: leading zeros in sapscript

    hi gurus, how can i remove leading zeros in sapscript form so if the matnr 00000010 would be 10 only? please help. thanks!