We help IT Professionals succeed at work.
Get Started
Private
Troubleshooting Question

Batch file not copying second file.

122 Views
Last Modified: 2020-12-14
Hi Experts,

I have a batch file containing the following.

del "C:\ImportVisitReport\Schedule List .csv"
del "w:\Schedule List .csv"
node C:\ImportVisitReport\HHA-v4.js
copy "C:\ImportVisitReport\Schedule List .csv" "w:\Schedule List .csv"
Where the js file downloads Schedule list .csv file into the local C:\ImportsVisitReport folder.

When I do them step by step it works, however when running the batch file only the C:\ImportsVisitReport\Schedule list file gets updated, while the W:\Schedule list file remains the old one.

Any idea why is that?
Comment
Watch Question
Master of Business Engineering Management
Commented:
This problem has been solved!
Unlock 1 Answer and 42 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE