Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are these System Variables $CurrentDirectory$, $FolderName$ and $FileName$?

system variables
0
Posted

What are these System Variables $CurrentDirectory$, $FolderName$ and $FileName$?

0

Consider a command in the task – “Loop for Folders in a “. Here the is the specified folder on which the Loop is going to be executed. Its full path is available at execution time by the System Variable “$CurrentDirectory$” If ‘n’ is the number of folders in the specified folders, the loop will be executed ‘n’ times. Each time the $FolderName$ variable will have the next folder’s name inside the specified folder. Now if the task is like “Loop for Files in a “. Then $FileName$ will represent the next file’s name inside the specified folder. Outside the loop $CurrentDirectory$, $FolderName$ and $FileName$ will have no data in them.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123