How to copy files on a CMD on LAN (windows xp) - windows

hello I don't know about this but I found this on Internet cafe but I don't have enough knowledge on how .bat files works, So I want to know how to copy files like this display.
And the files is already shared so that I can copy. All PC don't have password. Just directly log-in to desktop.
Input location to copy: \\PC1\Steam\Steam\SteamApps\common\dota 2 beta
Input location to paste: D:\Games\Steam\SteamApps\common\dota 2 beta
then it will alert me if done. The files will be overwrite and paste all data.
I don't know the code of copying too and I search too many still cant understand. I just want to use this on my internet cafe so that I don't update games anymore on every PC. Because copying on directly network is my costumer don't know.

Copy -y "source" "destination".
With the quotes if there are spaces in the path. Also, if copy does not want to copy from the network unc, then first connect to the unc using "net use".

Related

Windows is hacked - All file's extension have changed

We have a Microsoft Windows server, we find all files changed to an extension .ETH file (Specially the AutoCAD files .dwg files).
As the following:
All files converted to .id-26E67253.[helpfilerestore#india.com].ETH.
Also, If I tried to connect any flash USB to the computer, all files inside the USB Drive hacked also.
I just need any suggestion, how can I get my old files, and how can I fix the virus or hacking?
It is a ransomware named Dharma.
Check this link Dharma Ransomware

Copying files, while preserving ALL attributes

I'm trying to write a restore script for an embedded PC running Windows XP, the idea is, to plug in an restore USB flash drive, boot it and copy an image from the flash drive to the PC. That's working fine so far. However each embedded PC has an individual license file, which needs to be preserved.
I'm trying to copy these files to flash drive, restore the image and copy them back to the PC.
If I copy them using Windows Explorer, they are are ok.
If I copy them using command lines "copy" or "xcopy" they break. The also break when I use C# and File.Copy, so I guess there are some attributes which are not covered.
Any ideas how to copy these files without the need to log in (they usally don't have any kind of display or keyboard)?
Note that the license files are bound to hardware id, i'm not trying to pirate anything.

Why is copying files locally on a remote machine so slow?

Let's say I have \machinename\dll. I open \machinename in Windows Explorer and do a copy/paste on the dll folder to make a backup copy of it so there will be a "dll - Copy" folder in \machinename. It's horrendously slow. I hear that Windows actually copies the folder/files to my local computer then copies them back. Why?
We can use RDP to remote into the server to make the changes, but I really don't like using RDP within another RDP session when I am connected via VPN from home.
Why can't the remote server know I am trying to copy a file and just do the copy locally on its end rather than copying everything to me just so I can copy it back?
ANSWER!
http://computer-vet.com/weblog/2008/01/28/remote-command-line-on-windows.html
I tested it and it works awesomely. It's like remote desktop for command prompts. WIN!
What a human conceptually thinks of as a "copy function" is performed by a program. By initiating the copy function from your local computer, the program is run on your local computer. It then reads each file and folder from its current location, and writes it to the destination location. The copy program doesn't know and doesn't care whether the source and/or destination are local or remote. The data flow in your case is thus:
[remote disk] -> [network] -> [local RAM] -> [network] -> [remote disk]
The copy is so slow, because all of the data has to be sent over the network twice.
If the program had been programmed to detect a remote->remote copy, and perform that more efficiently, it would be faster - alas it wasn't.
But you're already aware of the solution: turn the "network copy" into a "local copy" by starting the copy function on the machine where the files are stored.
http://computer-vet.com/weblog/2008/01/28/remote-command-line-on-windows.html
I tested it and it works awesomely. It's like remote desktop for command prompts. WIN!
Try using another shell-commander (like, total commander or other ...commander) at remote moshine. Or you can try to copy file/dir not with shortcut ctrl+c/v but with mouse dragging (for copy press shift also).

Are there any FTP programs which can automatically send the contents of a folder to a remote server?

Are there any FTP programs which can automatically copy (or rather 'move') the contents of a folder to a remote server? I have of course googled this but only really found one or two ancient products which look really clunky and unmaintained. I was wondering if there's a way to do this from the command line or any better solution to the base problem.
In more detail, new files get written to a folder every few hours. These new files need to be FTP'd elsewhere and then deleted. Mirroring or synchonisation systems are probably out of the picture as we need to delete the source files once they've been successfully transferred.
If it's easier, the 'solution' could pull the files off the server (rather than the server pushing them to the client). The computers will both be Windows OS.
You could use any off the shelf FTP program that supports command line and schedule a task on Windows Scheduler to run every 10 minutes. Check the folder, and move any files to the FTP site.
In the end I used a program called FTP Auto Sync: http://ftp-auto-sync.com/

executing copy command in a batch file

I'm using a windows copy command to perform auto file backup of Microsoft outlook files for a domain users.
the problem exists after 6 month of using this batch file is that the .pst file size for each user is growing and the copy operation is getting too long to complete.
i want to know are there any way to copy only the changed bits in the .pst file couse what i'm doing is copying the whole file each time a user login.
copy C:\"Documents and Settings"\%USERNAME%\"Local Settings"\"Application Data"\Microsoft\Outlook\ \\storage\folder1\folder2\%USERNAME%\%DESTDIR% /y /v
thanks
This page might help you in doing that : link
In a word: with the regular Windows copy command, no.
You've a few alternatives, though. Probably the best is to ask your users (or get your administrator) to reduce the size of the mailbox.
Another is to try the robocopy utility, which is part of the Windows Server Resource Kit and which replaces xcopy in versions of Windows above Server 2008 R2. In my experience this is a little faster. It also includes an option to skip the copy if the file hasn't changed, which may help if your users only use email infrequently.
rsync (details here, Windows version here) does a true differential copy, so only the changed bytes between the files are copied. However this needs to be installed as a Windows service on the listening side and needs to be installed as a program on each client.

Resources