Obviously I misspoke about the BAT file, you can directly call the cmd.exe 
command using the syntax outline...

My apologies.


Steve


-----Original Message-----
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Stephen J. 
Orth via 4D_Tech
Sent: Friday, October 20, 2017 6:27 PM
To: '4D iNug Technical' <4d_tech@lists.4d.com>; timnev...@mac.com
Cc: Stephen J. Orth <s.o...@the-aquila-group.com>
Subject: RE: v13 - Renaming a Directory via code.

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


**********************************************************************
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
**********************************************************************

Reply via email to