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: a synctext error in a bat file

14 Jun 2017   #1
reble

windows 7 home 32 bit, I just changed back from 64 to 32bit
 
 
a synctext error in a bat file

I am trying to make a bat file to put on a cd that when the cd is put in and the bat file is run, it will make a directory on the hard drive then copy the DOS game from the cd and past the game to the directory that was made on the hard drive. I am making this cd for a friend and it is a new learning experience for me.
I got the bat file partly working. I am having a sync text error in the copy cmd line that I can't figure out. I have a few read/write DVD's. I am using the 1 of the read/write DVD's as a test bead instead of using up all my blank DVD's and CD's until I get all the bugs out of the bat file. The DVD is formated. Bellow is the bat file as it stands now and a screen capture of the DOS cmd box. I would be very grateful if someone can help me work out the bugs. The dir names in the copy line are for test purposes only. Once the bat file is working right I will put in the real dir's. The test dir names are so I don't screw up my hard drive during testing.


@echo off
echo WELCOME TO WOLF3D COPYER.
echo This BAT file will make the directory and copy the game to the HD.
pause &rem [this pause is here because the echo lines above won't show when the bat file runs without the pause]
mkdir C:\dgames\dgames\wolf3d-
cd /d "%~dp0"
cls
echo Your %~d0 drive.
cd %~d0
dir
cd temp &rem [the bat file works fine to this point]
COPY "Cd %~d0\temp\test file.doc" "C:\dgames\dgames"
rem [I am having a sync error in the copy line]

pause &rem [the pause is here to keep the dos cmd window open to take a screen capture picture]



Steve




Attached Images
a synctext error in a bat file-bat-file.jpg 
My System SpecsSystem Spec
.
14 Jun 2017   #2
samuria

win 8 32 bit
 
 

A lot of fafing about use built in robocopy then you just need
Robocopy y: c:\
That will create folders on c copy all the folders over job done in one line. Robocopy is built into Windows but you could put the file on DVD to be sure. You can download a free GUI for robocopy to write script for you
My System SpecsSystem Spec
14 Jun 2017   #3
reble

windows 7 home 32 bit, I just changed back from 64 to 32bit
 
 
re: a synctext error in a bat file

What is "fafing"? I hear about all this caned prog's like "robocopy" and "quick menu builder". I need the starightfoward batch copy of the cmd chain of events for the copy cmd.

Quote   Quote: Originally Posted by samuria View Post
A lot of fafing about use built in robocopy then you just need
Robocopy y: c:\
That will create folders on c copy all the folders over job done in one line. Robocopy is built into Windows but you could put the file on DVD to be sure. You can download a free GUI for robocopy to write script for you
My System SpecsSystem Spec
.

14 Jun 2017   #4
reble

windows 7 home 32 bit, I just changed back from 64 to 32bit
 
 

I finely figured out the correct syntax for the copy line. It now works 100%. [COPY "test file.doc" "C:\dgames\dgames"] without using fancy prog's like Robocopy.
My System SpecsSystem Spec
15 Jun 2017   #5
reble

windows 7 home 32 bit, I just changed back from 64 to 32bit
 
 

After about 14 hours of work I finely got the last syntax bug out of the batch file. The last bug was the xcopy string to copy the game it self and all the games sub directorys from the cd to the hard drive. The final string is [XCOPY "\games*" "C:\dgames\dgames" /e]. I went through many hours of looking at the xcopy cmd syntax switchs at lifewire.com/xcopy-command-2618103. Now that is done I will do the main menu and burn the cd after a few hours of sleep. It was real learning experience. Thats how I learn new things, hands on and getting my hands durty.
My System SpecsSystem Spec
Reply

 a synctext error in a bat file




Thread Tools




Similar help and support threads
Thread Forum
Error 1326. Error getting file security:
I am attempting to install MS Office 2010 Plus and keep getting the following error. Win 7 Ultimate x64 Error 1326. Error getting file security: C:\ProgramData\Microsoft\OfficeSoftwareProtectionPlatform\ GetLastError: 5" I have run the fixits, sfc and nothing seems to work
Installation & Setup
Error copying file: Data error (cyclic redundancy check). CRC Scan ?
Edit: Think my hard drive may be failing and was the cause of my file synchronizing crash. I use it mostly to stream music and video and access the hard drive a lot. Any advice thanks HDDStatus - Tool to check hard disk status, health and reliability Hey, I've been using GoodSync for the...
Backup and Restore
File system error (-1073741792), Sys restore error (0x8000ffff)
Hi all, Huge problem regarding permissions on my (massively unstable) PC. I try to run ANYTHING including .dlls with admin permissions and i get a nice little "ding", and error message regarding the relevent .dll and File system error -1073741792, including one just before I get to the logon...
General Discussion
[ERROR] 'Error opening file for writing' whilst using ANY installer.
Recently whenever I've used an .exe installer I'll get an error as soon as I click start after choosing the directory, in the picture example I include below, it's of SA-MP, but it happens with any installer I try and use. Installers have worked previously, it's only recently it's stopped working....
General Discussion
Magic ISO "ERROR: Added file is too large." when adding 4.29 GB file
When I try to add a 4.29 GB file to a disk image I'm creating it says "ERROR: Added file is too large." Registered Magic ISO is supposed to support up to 10 GBs. What's the deal?
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 20:00.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App