need help batch script
Moderator: DosItHelp
need help batch script
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
(D\gameonline\dota2\)
pc -01 = 192.1683.1
(D\gameonline\dota2\)
how to batch script
thx before
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
(D\gameonline\dota2\)
pc -01 = 192.1683.1
(D\gameonline\dota2\)
how to batch script
thx before
Re: need help batch script
lioncava wrote: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
(D\gameonline\dota2\)
pc -01 = 192.1683.1
(D\gameonline\dota2\)
Test this - it should do a mirror backup from the source to the target - copying only new files and making an exact copy on the target folder.
EDITED:
Code: Select all
@echo off
set "pc_server=\\192.168.3.200\D\gameonline\dota2"
set "pc-01=\\192.1683.1\D\gameonline\dota2"
robocopy "%pc_server%" "%pc-01%" /mir
Re: need help batch script
thx for replay
already test bat file but nothing happen
when i clik bat file just blink and nothing happen
this actual my bat file
thx
already test bat file but nothing happen
when i clik bat file just blink and nothing happen
this actual my bat file
Code: Select all
@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
thx
Re: need help batch script
lioncava wrote:thx for replay
already test bat file but nothing happen
when i clik bat file just blink and nothing happen
this actual my bat fileCode: Select all
@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
thx
Open a cmd window and type the batch file name to launch it. You will then see any error messages on the console.
In your pc_server variable you have D: and the : is an illegal character in a path.
Re: need help batch script
what should I do to fix it
thx
thx
Re: need help batch script
already to change that ilegal code hehe
but same nothing happen
but same nothing happen
Code: Select all
@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
Re: need help batch script
Open a cmd window and type the batch file name to launch it. You will then see any error messages on the console.
Re: need help batch script
this error
Code: Select all
D:\GameOnline>tes.bat
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Sun Dec 22 14:14:51 2013
Source : D:\GameOnline\192.168.3.77\D\GameOnline\DOTA 2" 192.168.3.24\D\DOTA\
Dest : D:\GameOnline\2"\
Files : *.*
Options : *.* /S /E /COPY:DAT /PURGE /MIR /R:1000000 /W:30
------------------------------------------------------------------------------
2013/12/22 14:14:51 ERROR 3 (0x00000003) Accessing Source Directory D:\GameOnlin
e\192.168.3.77\D\GameOnline\DOTA 2" 192.168.3.24\D\DOTA\
The system cannot find the path specified.
D:\GameOnline>
Re: need help batch script
try this:
Code: Select all
@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
Re: need help batch script
this error
Code: Select all
D:\GameOnline>tes.bat
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Sun Dec 22 14:58:46 2013
2013/12/22 14:58:46 ERROR 67 (0x00000043) Getting File System Type of Source \\1
92.168.3.77\D\GameOnline\DOTA 2" \192.168.3.24\D\DOTA\
The network name cannot be found.
Source - \\192.168.3.77\D\GameOnline\DOTA 2" \192.168.3.24\D\DOTA\
Dest : D:\GameOnline\2"\
Files : *.*
Options : *.* /S /E /COPY:DAT /PURGE /MIR /R:1000000 /W:30
------------------------------------------------------------------------------
2013/12/22 14:58:46 ERROR 67 (0x00000043) Accessing Source Directory \\192.168.3
.77\D\GameOnline\DOTA 2" \192.168.3.24\D\DOTA\
The network name cannot be found.
D:\GameOnline>
Re: need help batch script
It looks like the trailing slashes are significant. Try this version.
Code: Select all
@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
Re: need help batch script
this bro
Code: Select all
D:\GameOnline>tes.bat
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Sun Dec 22 16:28:31 2013
2013/12/22 16:28:31 ERROR 67 (0x00000043) Getting File System Type of Source \\1
92.168.3.77\D\GameOnline\DOTA 2\
The network name cannot be found.
Source - \\192.168.3.77\D\GameOnline\DOTA 2\
Dest : \\192.168.3.24\D\DOTA 2\
Files : *.*
Options : *.* /S /E /COPY:DAT /PURGE /MIR /R:1000000 /W:30
------------------------------------------------------------------------------
2013/12/22 16:28:31 ERROR 67 (0x00000043) Accessing Source Directory \\192.168.3
.77\D\GameOnline\DOTA 2\
The network name cannot be found.
D:\GameOnline>
Re: need help batch script
The error The network name cannot be found. means that this path you are using doesn't exist.
\\192.168.3.77\D\GameOnline\DOTA 2\
\\192.168.3.77\D\GameOnline\DOTA 2\
Re: need help batch script
It's not accessible from the LAN.
open a cmd prompt and type this to see if it returns a directory list.
dir "\\192.168.3.77\D\GameOnline\DOTA 2"
You probably haven't shared drive D: or this folder.
open a cmd prompt and type this to see if it returns a directory list.
dir "\\192.168.3.77\D\GameOnline\DOTA 2"
You probably haven't shared drive D: or this folder.