Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Renaming File Names


From   "Mingfeng Lin" <[email protected]>
To   [email protected]
Subject   Re: st: Renaming File Names
Date   Tue, 6 May 2008 15:37:53 -0400

You can use ! or -shell-

e.g. (in stata)

! cmd
OR
shell cmd

OR in your case
!  rename ....
OR
shell rename

On Tue, May 6, 2008 at 3:31 PM, Raphael Fraser <[email protected]> wrote:
> I'm not sure I understand how to call the operating system. Can you
>  give an example?
>
>
>
>  On Tue, May 6, 2008 at 2:15 PM, n j cox <[email protected]> wrote:
>  > Yes. Do your name manipulation using the usual string functions, macros,
>  > whatever, then call up your operating system using !.
>  >
>  >  Nick
>  >  [email protected]
>  >
>  >  Raphael Fraser
>  >
>  >
>  >  Is it possible to rename the file names below using the first four
>  >  characters in the file name in Stata?
>  >
>  >  018b_crp_13april08.0101.csv
>  >  020b_crp_26apr08.0101.csv
>  >  027b_crp_05april08.0101.csv
>  >  032bb_crp_06april08.0101.csv
>  >
>  >
>  >
>  >  *
>  >  *   For searches and help try:
>  >  *   http://www.stata.com/support/faqs/res/findit.html
>  >  *   http://www.stata.com/support/statalist/faq
>  >  *   http://www.ats.ucla.edu/stat/stata/
>  >
>  *
>  *   For searches and help try:
>  *   http://www.stata.com/support/faqs/res/findit.html
>  *   http://www.stata.com/support/statalist/faq
>  *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index