How do I copy the "SOURCE" folder to the "REC

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Ivclim
Junior Member
Junior Member
Posts: 8
Joined: 2017-11-18, 19:47 UTC

How do I copy the "SOURCE" folder to the "REC

Post by *Ivclim »

Used
Win 7x64
Total Comander 9.12 RC3 64 bit (2017-11-09)

The source folder - which you want to copy.
Is located -\\Server\e\Total\folder_1\SOURCE\
Folder contents:
- Empty folders (nesting - 4-6 levels);
- files (different);
- references (* .lnk);
Recipient folder - folder where you want to copy the source folder with all its contents.
Is located -\\Server\e\Total\folder2\RECIPIENT\
Folder contents: - the folder is empty;

Panel Status:
Left panel - not activated - an arbitrary folder is opened;
Right panel - activated - the "RECIPIENT" folder is open;

Names of folders, files, links are used in Russian and English languages, names contain spaces and numbers.



Question
How to make a vb script so that I can copy the folder "SOURCE" , with all its contents, to the folder "RECIPIENT" in the state of the panels described above (item "Panel Status" )?

If the given task is not realizable for the given situation, I ask to inform the reason.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Ivclim,
Do you want to copy inside VBScript or use VBScript to start the copy within TC?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Ivclim
Junior Member
Junior Member
Posts: 8
Joined: 2017-11-18, 19:47 UTC

Post by *Ivclim »

2Hacker,
Thank you for having responded.

I have already been helped to solve this problem.

Decision.

Code: Select all

TOTALCMD#BAR#DATA 
nircmd.exe execmd xcopy /cehqrkxyz \\Server\e\Total\folder_1\SOURCE\ 
"%P"&&nircmd sendkeypress ctrl+r 
wpdshext.dll,4 
Копировать содержимое сетевого каталога в активный 
%COMMANDER_PATH%\Utils\NirCmd\
I was probably wrong trying to solve the problem using VBScript.
CMD, seems to me, more convenient for this situation.

I would be grateful if someone would suggest other solutions.
Post Reply