Carlos's profileLIBs Gráfica para (x)Har...BlogListsNetwork Tools Help

Blog


    4/11/2008

    Excluindo arquivos de uma pasta

     
    Apagando todos os aquivos de índices de uma subpasta do seu sistema
     
    Essa semana tentei excluir todos os arquivos de uma pasta de um dos meus sistemas e por incrivel que possa parecer a coisa não é tão simples assim.  Tudo porque o comando Delete File não aceita coringas (*).
     
    Para minha sorte estou escrito em vários grupos sobre xBase e nossa comunidade é bastante ativa e e menos de uma hora várias soluções para o "problema" estavam disponíveis basntando avaliar qual delas servia melhor ao meu caso em específico.
     
    Dentre elas destaquei essa:
     
    Apagando todos os aquivos de índices de uma subpasta do seu sistema:
     
    aEval(Directory("indices\*.NTX"), {|z| Ferase("Indices\" + z[1])})  
     
    Estou publicando para que sirva de apôio para a nossa comunidade, e como documentação para futuras pesquisas;
     
    Obs. Esse post não é exclusivo para ooHG, pode ser aplicado para xBase & Cia Ltda.
     
     
    Carlos Susviela
     
     

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://oohg-br.spaces.live.com/blog/cns!692520CDA770B22E!140.trak
    Weblogs that reference this entry
    • None