Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: batch script help

21 Dec 2013   #1
lioncava

windows 7 32bit
 
 
batch script help

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 System SpecsSystem Spec
.
27 Dec 2013   #2
lioncava

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 System SpecsSystem Spec
27 Dec 2013   #3
Ztruker

Windows 10 Pro X64
 
 

Remove the @echo off then run it. What error message do you get?
My System SpecsSystem Spec
.

27 Dec 2013   #4
lioncava

windows 7 32bit
 
 

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 System SpecsSystem Spec
28 Dec 2013   #5
Ztruker

Windows 10 Pro X64
 
 

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 System SpecsSystem Spec
29 Dec 2013   #6
lioncava

windows 7 32bit
 
 

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 System SpecsSystem Spec
29 Dec 2013   #7
Ztruker

Windows 10 Pro X64
 
 

Sorry, I screwed that up. what I meant to write was:

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

What about the net view outputs?
My System SpecsSystem Spec
Reply

 batch script help




Thread Tools




Similar help and support threads
Thread Forum
Why is my batch script freezing? (windows 7)
This is not the entire script but this the line that is freezing, i'm just trying to compile some basic information from the computers in my domain with this login script. When running just this line as a bat file it will hang until closed and when you attempt to close CMD it lags up and...
General Discussion
Help Need in batch script
Hi, I have my vendor's ftp url over SSL. it's like ftps://myvendor.com and i have username and password. So please help me on writing batch script t o downlod the file from my vendor repository. If this is not possible in dos script, please suggest me opensource tool. But i would love the...
General Discussion
Help Needed in Batch Script
Hi, I have 1000 image url in my text file(sample.txt) and i want to download the images using the url. Can anyone please share with me the sample script which can do this in single shot. Also, is there any way to reduce the size of the image into 20/20 px with png extension. Thanks
General Discussion
How to run cmd.exe elevated in batch script
Hi All, I am writing a dos batch file for windows7 and it has many commands which need elevated access to run. For elevation I am using elevate.exe. I am doing like below - set Elevation=elevate -wait cmd.exe /c %Elevation% "cd /d %CD% && xcopy /E /Y ...." %Elevation% "cd /d %CD% &&...
General Discussion
Help me with Batch script!
Hi, Can somebody assist me with a .bat file I am trying to create? This is what I have now: start /d "C:\Users\Me\Desktop\ghost" ghost.exe start /d "C:\Users\Me\Desktop" Poweroff.exe C:\Windows\System32\powercfg.exe /setactive e428f8a5-615e-488f-b7f7-1ed39450e522The first 2 lines start...
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:14.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App