If you only work on Windows (like me) you can take advantage of a Windows DOS command by creating a batch file with the following:
SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"TRUE") LAUNCH EXTERNAL PROCESS("cmd.exe /C rename "+$dir_current+" "+$dir_rename) You just need to account for any spaces in the path names, since they will need to be placed inside double quotes. Very simply, very fast... Steve -----Original Message----- From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Chip Scheide via 4D_Tech Sent: Friday, October 20, 2017 6:03 PM To: timnev...@mac.com Cc: Chip Scheide <4d_o...@pghrepository.org>; 4d_tech@lists.4d.com Subject: Re: v13 - Renaming a Directory via code. Ill post mine on Monday. I got it from Jorge I think > On Oct 20, 2017, at 4:30 PM, Chip Scheide <4d_o...@pghrepository.org> wrote: > >>> $command_t:="mv "+GetPOSIXfilePath ($folderPath_t)+" >> had trouble here - >> apparently 4D's (v13) Convert path system to POSIX command - fails to >> do what it is advertised to do..... >> Fortunately I had a routine already written to do this. > > That’s exactly why I wrote my own. I use the 4D Convert path system > to POSIX command but then Replace String for all spaces to “\ “. > That seems to make it work. > > Tim > > ******************************************** > Tim Nevels > Innovative Solutions > 785-749-3444 > timnev...@mac.com > ******************************************** > > ------------ Hell is other people Jean-Paul Sartre ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************