Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updating and coping files using batch file 1

Status
Not open for further replies.

obulldog27

Programmer
Apr 26, 2004
169
US
I have two folders and one subfolder within water:
1. c:\wjcut
2. c:\water
c:\water\archive
(both files are on the Desktop).

I copy files from wjcut into water with an extension change from .nc to .ppg.

copy wjcut\*.nc water\*.ppg

The .nc files are created from a manufacturing application (mc8 -> nc).

And the c:\water\*.ppg files are uploaded to another networked computer used for a specific manufacturing process. copy c:\water\*.ppg g:\uploaded\*.ppg


**What I want to do is the files(water\*.ppg) that I DO NOT WANT want uploaded I put them in the archive folder for later use.
**The Problem is that the archived files/files( i dont want upload) are recreated when ever I created a new .nc file from the manufacturing application because ALL .nc files copying/converted back to my ppg folder but I want only the ones I just created. I am open to modifications of my of my current folder setup if necessary.
(testing .bat on winxp but using it on win98)


 
maybe its just me but i cant make out what your asking for... could you explain a bit more...
sorry
cdc
 
I need a piece of code (algorithm) in a batch file with the following logic:

if C:\folder A\subfolder A1 has file x
then DO NOT COPY P:\folder C\subfolder C1\ file x
into C:\folder A
else
COPY P:\folder C\subfolder C1\ file y (or any other file but not if it matches files in subfolder A1)


 
Help for Batch commands gives:

if [not] exist FileName command [else expression]



________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top