Differences

This shows you the differences between the selected revisions of the page.

scriptcommand_lls 2011-11-10 scriptcommand_lls 2020-05-29 (current)
Line 1: Line 1:
-====== lls ======+====== lls command ======
Lists the contents of local directory. Lists the contents of local directory.
 +
 +===== Syntax =====
  lls [ <directory> ]\[ <wildcard> ]   lls [ <directory> ]\[ <wildcard> ]
-If ''directory'' is not specified, lists working directory. When ''[[file_mask|wildcard]]'' is specified, it is treated as set of files to list. Otherwise, all files are listed.+===== Remarks ===== 
 + 
 +If ''directory'' is not specified, lists working directory. When ''wildcard&#039;' ((The Windows wildcard supports &#039;'*'' and ''?'' only.)) is specified, it is treated as set of files to list. Otherwise, all files are listed. 
 + 
 +Effective [[scriptcommand_option|options]]: ''[[scriptcommand_option#failonnomatch|failonnomatch]]''
===== Examples ===== ===== Examples =====
<code winscp> <code winscp>
lls *.html lls *.html
 +</code>
 +<code winscp>
lls d:\ lls d:\
 +</code>
 +<code winscp>
lls lls
</code> </code>
 +===== Converting to .NET Assembly =====
 +There is no equivalent for ''lls'' command in [[library|.NET assembly]].
 +You can make use of local directory listing functions of your runtime environment. In .NET framework, you can use ''[[dotnet>System.IO.Directory.GetFiles]]''. In [[library_powershell|PowerShell]], you can use also ''[[ps>microsoft.powershell.management/get-childitem|Get-ChildItem]]'' cmdlet.

Last modified: by martin