How to create a folder in the remote linux machine.

Advertisement

Shiyas M
Guest

How to create a folder in the remote linux machine.

Hi

I have created a script to transfer files from windows machine to linux machine which get execute through batch file. Now a new requirement has come in such a way that..files belongs to respective folder need to get transferred to same named folders in linux machine. Right we are transferring it into one single folder. These are client data. And every week new client gets added. So I would like to know how to create folder on remote linux machine in winscp commandline scripts. Kindly help on this.

Thanks
SHIYAS M

Reply with quote

Advertisement

Guest

Re: How to create a folder in the remote linux machine.

Is it possible to create nested directory through WinSCP commanline?

Thanks
SHIYAS M

Reply with quote

martin
Site Admin
martin avatar

Re: How to create a folder in the remote linux machine.

@SHIYAS: Just use mkdir multiple times. Note that you cannot create more levels with one command.

Reply with quote

Advertisement

tyeth
Joined:
Posts:
1

use mkdir -p many/levels/of/folders.
This will be server dependant, but is pretty standard, and will create all four folders at once.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,405
Location:
Prague, Czechia

@tyeth: The question is about WinSCP scripting mkdir command. Not about shell mkdir command.
Though you can call shell mkdir command using call scripting command:
call mkdir -p many/levels/of/folders

Reply with quote

Advertisement

You can post new topics in this forum