If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Applications & Tools > Batch file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-03, 21:38
Loas Loas is offline
Registered User
 
Join Date: Jan 2003
Posts: 30
Question Batch file

Guys,

I did this batch file (b.bat) to make backup of some directories of my computer:

echo *** backup "Outlook Express"
wzzip -p -r "Backup_Outlook Express Pastas.zip" "C:\Documents and Settings\Loas\Configurações locais\Dados de aplicativos\Identities\{CDEF22D7-8EDE-417B-9564-68BA74DF7A13}\Microsoft\Outlook Express"



But there is an directory that give me a follow error message:

Warning: name not matched: C:/Documents and Settings/Loas/Configuraþ§es locais/D
ados de aplicativos/Identities/{CDEF22D7-8EDE-417B-9564-68BA74DF7A13}/Microsoft/
Outlook Express
Error: No files were found for this action that match your criteria - nothing to
do. (Backup_Outlook Express Pastas.zip)



If I try run this command in DOS prompt it work fine, but in batch file it gime error.

The "Configurações locais\" directory is not being read correctly.

Any idea?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-18-03, 22:46
playernovis playernovis is offline
Registered User
 
Join Date: Nov 2002
Location: San Francisco
Posts: 251
Re: Batch file

maybe it won't help, but if you use Win2k, try to rename b.bat to b.cmd

bat files are run by command.com and cmd files by cmd.exe (you should always use CMD in Win2k). http://www.winscriptingsolutions.com...rticleID=13578



also try WinZip command line add-in (maybe the problem is in your ZIP program and special folder interpretation) www.winzip.com



jiri
Reply With Quote
  #3 (permalink)  
Old 01-19-03, 07:12
Loas Loas is offline
Registered User
 
Join Date: Jan 2003
Posts: 30
Re: Batch file

Thanks for the help.

I had tried but it doesn´t work.

\Configurações locais (used in portuguese language means Local Settings) is not recognized when run by the cmd file. If I use the same command in prompt line, it work.

The problem is here:

\Configurações locais <- command line in cmd file
\Configuraþ§es locais <- the way that the command line is showed
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On