I am working on a remote computer that has a very restricted network, it doesn't allow driver mounting, has no internet acess, and so on.
I can only copy files to my local computer using the converntioal way of copy and paste (press ctrl C on the file in the remote computer and then press ctrl V in my local coputer).
Is there a way to automate this process in windows? I need to keep copying files for a couple of days.
Can use mstsc that should be the intranet. Consider FTP Server?
Related
I have a scenario where I have to sync a Linux directory and a windows network path.
For now I'm doing this in two steps
pscp for copying the file from the Linux machine to my local windows machine.
xcopy for copying the file from my machine to the desired windows network path.
All I'm looking for here is is there a way to sycn the Linux directory with the windows network path.
I'd recommend you use WinSCP for this task. When using it as a GUI it's a great tool, but crucially, it can also be automated with ease. Here is a formal guide on how automation works and here is a tutorial video showing how it works in practice with a batch file.
You basically want to copy what the guy in the video did, by making a script to log into your remote server and perform a local synchronization. Any other options, such as choosing to mirror, and how to compare existing files, can also be adjusted by looking at the docs.
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".
I want to write code in vc++ to mount remote machine (with FTP server running on remote machine) as local drive on my PC.
Please suggest the API which can mount the remote machine using ftp protocol, like "WNetAddConnection2" uses smb protocol.
Or please suggest something regarding the same.
Thanks in Advance !!!
Manually it can be done through "Add network drive" option in my computer in windows, u need to fill ftp address of server and it will be mounted as local drive.
Hello.
It is not trivial task.
Mounting remote machine as disk required many APIs.
For FTP may use FTP families of WinInet functions, for Shell is required knowledge of pidls and many related shell functions.
Rather use MSIEFTP.DLL/Microsoft Internet Explorer FTP Folder Shell Extension. :-)
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).
How do I list files with edit locks on a network drive using a shell and associated tools?
I think net file has to be run on the server, and I'm looking to do this from any box on the drive.
"Display all the open shared files on a server and the lock-id NET FILE
Close a shared file (disconnect other users and remove file locks) NET FILE id /CLOSE"
And this was tested on an xp workstation. Operates fine, but I am not sure how UAC would effect it.