Guest Posted May 18, 2021 Share Posted May 18, 2021 You can use this to see the syntax: APP HELP Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted May 18, 2021 Author Share Posted May 18, 2021 David, Thanks for your reply. I tried the RENAMEF, COPYFILE & MOVEFILE commands but its not working. It seems these commands considering t061022 as file type which is unknown. Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted May 18, 2021 Author Share Posted May 18, 2021 Hi Thirumaran You can use the DOS rename command instead. ! rename c:ibiappsbaseappd121042301_test.txt.d210518 d121042301_test.txt0418 Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted May 18, 2021 Author Share Posted May 18, 2021 chuck.wolff: ! rename c:ibiappsbaseappd121042301_test.txt.d210518 d121042301_test.txt0418 Chuck, If I use the below DOS command, Im getting rename: not enough arguments error ! rename homewebfocusarchived121042301_test.txt.d210518 d121042301_test.txt The Actual file name shows as d121042301_test.txt.D210518.T001713 Im running this command from the DataMigrator procedure. DataMigrator version:8207 Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted May 18, 2021 Author Share Posted May 18, 2021 You need the drive letter before home ie c:home Link to comment Share on other sites More sharing options...
David Beagan Posted May 18, 2021 Share Posted May 18, 2021 Apparently, RENAMEFILE doesnt support mixed file extensions. This worked in my testing: APP COPYFILE baseapp d121042301.txt.D210517 T061022 baseapp d121042301 txt APP DELETEFILE baseapp d121042301.txt.D210517 T061022 Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted May 18, 2021 Author Share Posted May 18, 2021 Chuck, We are using IBI Cloud server. Does the cloud will have Drive like c: Link to comment Share on other sites More sharing options...
David Beagan Posted May 18, 2021 Share Posted May 18, 2021 This also worked: APP MOVEFILE baseapp d121042301.txt.D210517 T061022 baseapp d121042301 txt Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted May 18, 2021 Author Share Posted May 18, 2021 Hi, We have a file in a folder that is moved from ETL File Listener. The FIle Listener renaming the file with date & time while moving to the archive folder. We need to rename the file again to the original name and Extension. The Original Filename is d121042301.txt. The File Listener changed the file name to d121042301.txt.D210517.T061022. We need to rename from d121042301.txt.D210517.T061022 to d121042301.txt. If I used the APP RENAMEF command and it shows the below error. (FOC36338) FILE DOES NOT EXIST: archive/d121042301.txt.d210517.t061022 Can anyone help me with how to rename this file Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted May 19, 2021 Author Share Posted May 19, 2021 David & Chuck, Thanks for your inputs. Later I got to know that the server is in a Linux based system. So I used the Linux command and renamed the file successfully. Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted May 19, 2021 Author Share Posted May 19, 2021 Thirumaran I should have guessed that when I saw home Glad you got it working. 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