batch script help

lioncava

New member
Local time
4:10 AM
Messages
7
dear all
any help to make batch script this the reason i want to make a batch file is to help me update the online games in 60 computers by overwriting or copying big files in one click from 1 source computer...
instead of turning on all 60 computers and updating all online games, he'll just have to update one computer and just copy the update or overwrite the old files in all 60 computers...

i have 1 server game i want only copy newer files to pc all pc client
example
pc server = 192.168.3.200
pc -01 = 192.1683.1
D\gameonline\dota2\


how to batch script

thx before
 

My Computer

Computer type
PC/Desktop
OS
windows 7 32bit
i try to make script but no work
this my scripy

@echo off
set "pc_server=\\192.168.3.77\D\GameOnline\DOTA 2\"
set "pc-24=\\192.168.3.24\D\DOTA 2\"
robocopy /"%pc_server%/" /"%pc-24%/" /mir
 

My Computer

Computer type
PC/Desktop
OS
windows 7 32bit
Remove the @echo off then run it. What error message do you get?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Code:
-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows

-------------------------------------------------------------------------------

  Started : Sat Dec 28 09:49:19 2013

2013/12/28 09:49:19 ERROR 161 (0x000000A1) Getting File System Type of Source \\
\192.168.3.77\D\GameOnline\DOTA 2\
The specified path is invalid.

   Source - \\\192.168.3.77\D\GameOnline\DOTA 2\
     Dest : \

    Files : *.*

  Options : *.* /S /E /COPY:DAT /PURGE /MIR /R:1000000 /W:30

------------------------------------------------------------------------------

2013/12/28 09:49:19 ERROR 161 (0x000000A1) Accessing Source Directory \\\192.168
.3.77\D\GameOnline\DOTA 2\
The specified path is invalid.
Waiting 30 seconds...
 

My Computer

Computer type
PC/Desktop
OS
windows 7 32bit
What does

net view \\192.168.3.77 and net view \\192.168.3.24

show you? They should return the defined shares for those computers. Each should return D as a share.

Also, I think the robocopy command should be

robocopy /%pc_server%/" "%pc-24%/" /mir
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
still same

Code:
-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows

-------------------------------------------------------------------------------

  Started : Sun Dec 29 18:52:11 2013

2013/12/29 18:52:11 ERROR 161 (0x000000A1) Getting File System Type of Source \\
\192.168.3.77\D\GameOnline\DOTA\
The specified path is invalid.

   Source - \\\192.168.3.77\D\GameOnline\DOTA\
     Dest : D:\GameOnline\2\ \ \mir\

    Files : *.*

  Options : *.* /COPY:DAT /R:1000000 /W:30

------------------------------------------------------------------------------

2013/12/29 18:52:11 ERROR 161 (0x000000A1) Accessing Source Directory \\\192.168
.3.77\D\GameOnline\DOTA\
The specified path is invalid.
Waiting 30 seconds... Retrying...
 

My Computer

Computer type
PC/Desktop
OS
windows 7 32bit
Sorry, I screwed that up. what I meant to write was:

robocopy "%pc_server%\*.*" "%pc-24%\" /mir

What about the net view outputs?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top