Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.BAT file problem
Message
From
20/08/2015 13:00:32
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01623636
Message ID:
01623639
Views:
65
thanks for stepping in

my target folder variable seems to be set OK
it is used to in the mkdir command. the folder gets made

just the copy does not work even this way: copy %srce%WEB.bai "%trgt%*.*



>>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%*.*
>
>
>Target folder is
>[\\ott-APV005\edrive\vApp9\vBRS\Capture\ г.8.01\]
>Check the picture.
>So maybe you should use:
>copy %srce%WEB.bai "%trgt%*.*"
Peter Cortiel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform