Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Preciso renomear um arquivo acrescentando um ponto no meio do arquivo e alterando a extensão.

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,55159
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Preciso renomear um arquivo acrescentando um ponto no meio do arquivo e alterando a extensão.
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Preciso renomear um arquivo acrescentando um ponto no m... - 1/9/2008 8:39:13 AM   
  webtecnic

 

Posts: 2
Score: 0
Joined: 1/9/2008
Status: offline
Preciso renomear um arquivo acrescentando um ponto antes do AAAA(que na verdade é o ano, exe: 2008)
 
Passo 1 NOME DO ARQUIVO DE ORIGEM : IF232PMSAAAAMMDDHHMMSS.V            (o arquivo está assim)NOME DO ARQUIVO DE DESTINO: IF232PMS.AAAAMMDDHHMMSS.DAT      (e tem que ficar assim)

AÇÃO: LER ARQUIVOS COM IF232PMS*.V E RENOMEAR ACRESCENTANDO PONTO ANTES DA DATA E TROCANDO A EXTENSÃO V POR DAT

Passo 2NOME DO ARQUIVO DE ORIGEM : IF242PMS.AAAAMMDDHHMMSS.DATNOME DO ARQUIVO DE DESTINO : IF242PMSAAAAMMDDHHMMSS.INI e IF242PMSAAAAMMDDHHMMSS.OKIAÇÃO: LER ARQUIVOS COM IF232PMS*.DAT E RENOMEAR ELIMINANDO PONTO ANTES DA DATA E TROCANDO A EXTENSÃO   DAT POR INI UMA CÓPIA COM .ORI

-----

Já consegui renomear, criar backup, mas não consigo incluir o "."(ponto) depois do "IF232PMS".

 
 
Post #: 1
 
 RE: Preciso renomear um arquivo acrescentando um ponto ... - 1/9/2008 7:30:09 PM   
  crazymatt

 

Posts: 296
Score: 0
Joined: 3/4/2005
From:
Status: offline
English only please!

_____________________________

-There is only 10 sorts of people, those who understand binary and those who dont.

(in reply to webtecnic)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Preciso renomear um arquivo acrescentando um ponto no meio do arquivo e alterando a extensão. Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts