Find Jobs
Hire Freelancers

Batch file syntax error

$10-30 USD

Dibatalkan
Dibuat lebih dari 10 tahun yang lalu

$10-30 USD

Dibayar ketika dikirim
I wrote this batch file and I am trying to get it to run in cmd prompt but I keep getting a syntax error on the FOR loop. I just want to copy files to computers on my network. Here is the code for the batch file. The complist file contains PC1 PC2 PC3 What is wrong? set FILE2COPY = C:\test1\[login to view URL] set COMPLIST = C:\test1\[login to view URL] for /f %%a in ("%COMPLIST%") do ( set WIN7 = \\%%a\c$\Program Files (x86)\test1 set WINXP = \\%%a\c$\1test if EXIST "%WIN7%" (set COPYDIR =%WIN7% ) else ( if EXIST "WINXP" ( set COPYDIR =%WINXP% ) else ( ECHO No such directory exists for computer %%a pause GOTO :END ) ) copy "%FILE2COPY%" "%COPYDIR%" /Y ) Pause :END
ID Proyek: 5166140

Tentang proyek

7 proposal
Proyek remot
Aktif 10 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
7 freelancer menawar dengan rata-rata $27 USD untuk pekerjaan ini
Avatar Pengguna
Hello, With 99% completion rate, 650+ successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 !!)... you can never go wrong choosing me :) I look forward to your reply. Thanks. Kind Regards, Rajesh Soni
$45 USD dalam 0 hari
5,0 (492 ulasan)
7,4
7,4
Avatar Pengguna
Hi. I have great xp in cmd scripts. Would be glad to help you with this project. Regards, Yuri .
$35 USD dalam 2 hari
4,9 (34 ulasan)
4,5
4,5
Avatar Pengguna
hi, I can help you ----------------------------------------------------------------------------------------------------------------------
$30 USD dalam 1 hari
5,0 (11 ulasan)
3,9
3,9
Avatar Pengguna
Hello! I have identified and corrected several errors in your batch file. Basically, I can deliver you a corrected batch file within minutes after you award me the project and I accept it (please allow for time difference for initial contact). I have more than 20 years experience with PCs, going back to times of DOS when running batch files at command prompt were the only way one could automate things. I'm confident that I can do this job to your highest satisfaction. Best regards, Tom
$20 USD dalam 0 hari
5,0 (2 ulasan)
2,6
2,6
Avatar Pengguna
Hello. What exactly are you trying to get your for loop to do? And could you also send the error you receive? Thank you for your time and I look forward to working with you. Edit: Offhand I can see that you will most likely need to use either quotes "" around Program Files (x86) or use a short filename such as PROGRA~2 in your path.
$20 USD dalam 0 hari
5,0 (1 ulasan)
0,6
0,6
Avatar Pengguna
Will be done at 9:00 am gmt +1 thats exactly tomorrow morning. if you don't mind. Kind regards. Haris
$25 USD dalam 0 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
10+ years IT experienced professional. will complete within short time period with best service and satisfaction guaranteed.
$15 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
flagstaff, United States
5,0
1
Anggota sejak Jul 5, 2012

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.