Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.BAT file problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01623636
Message ID:
01623796
Vues:
58
the date stuff works OK, the folder gets made.
it's just the copy which does not work!

there ar actually 2 files we get from the bank each day. I just copied one of them to the UT message
they come in with the same NAME everyday.
so I have to copy them off and change the name to distinguish them.
Thanks
Peter


>>I need to do a scheduled batch file but i can't make it work!
>>its supposed to create a new folder on a drive :\\ott-APV005\edrive\vApp9\vBRS\Capture\%Yr%%Mth%%Day%\
>>then copy tow files from the current folder to the newly created folder
>>my .bat creates the folder alright
>>but the copy does not work, the new folder remains empty
>>
>>:-(
>>
>>Peter
>>
>>echo off
>>Rem Get Day,Mth & Year from %Date%
>>set mth=%Date:~4,2%
>>set day=%Date:~7,2%
>>set Yr=%Date:~10,4%
>>set dt=%Yr%%Mth%%Day%
>>
>>set srce=c:\prowin3\capture\
>>set trgt=\\ott-APV005\edrive\vApp9\vBRS\Capture\%Yr%%Mth%%Day%\
>>
>>rem make a new dir for today
>>mkdir %trgt%
>>
>>
>>rem now copy the files into today's folder with the same name
>>
>>copy %srce%WEB.bai %trgt%*.*
>
>
>Not sure I understand you say "two files" and "now copy the files", but the command "copy %srce%WEB.bai %trgt%*.*" is just trying to copy one file (WEB.bai) (or is it a folder?)
Peter Cortiel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform