apathe Posted September 24, 2012 Share Posted September 24, 2012 Hi Guys; I need help im newbie in the forum. I want to copy some txt file application server to SAP server. ok its simple DriveMapAdd("M:","\\sap_server\destinationfolder\",0,"domain\username","password") FileCopy("C:\sourcefolder\*.txt","M:\destinationfolder\",9) DriveMapDel("M:") im using this code but here is the issue; this TXT file everyday generating at 4:00 am and file name is random genarating we dont know only thing that know file creation time how can i copy this new file every day just 1 TXT file but lastest 1 some1 can you help me sorry for my bad language... Link to comment Share on other sites More sharing options...
hannes08 Posted September 24, 2012 Share Posted September 24, 2012 Get a list of files in the source folder with _FileListtoArray("C:sourcefolder", "*.txt", 1). Loop through the array and use FileGetTime(<filename>) and check the result for the 04:00 AM time. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Link to comment Share on other sites More sharing options...
apathe Posted September 24, 2012 Author Share Posted September 24, 2012 can you write full code for me i dont know really how to use it :S Link to comment Share on other sites More sharing options...
apathe Posted September 24, 2012 Author Share Posted September 24, 2012 some1 can help me for this codes :S Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 24, 2012 Moderators Share Posted September 24, 2012 apathe,Remember this is not a 24/7 support forum - please do not bump your threads within 24 hours. We also do not write scripts to order here - but we are very ready to help you if you make an effort yourself. hannes08 has given you a reasonable idea of how you might proceed - go and read about the functions he mentioned in the Help file and see what you can produce. Come back if you run into difficulties. M23P.S. If you need to post the code you have produced please use Code tags - put [autoit] before and [/autoit] after your posted code. Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now