results.csv for D:\Data\WINWORD\ was created in the path shown in the DOS window(!)īoth point 2. %esfolder%\es.exe D:\Data\WINWORD\ -date-modified -date-created -size -extension -export-csv results.csv (in DOS-window)Ĥ. SET esfolder=C:\Tools\Everything\ (in DOS-window)ģ. Therefore, I have applied one of your suggested solutions as follows:Ģ. Thus the entry in the TC command line works as described above when specifying the complete path to es.exe. > The reason for my misconception was a mistake in the path:ĭ:\ Data\WINWORD\ (as an example in the forum) D:\ Daten\WINWORD (on my PC). In the file "results.csv", only the field headings are displayed. Unfortunately, another attempt showed that this variant does not work with the TC command line or DOS window.
Make sure you entered the name correctly and repeat the process." You have to enter the full path to the folder with the es.exe: C:\Tools\Everything\es.exe D:\Data\WINWORD\. Google for more information about SET as that is only set and work for current open DOS-Box or running batch, unless you really set it persistent as system-wide environment variable
So you could add your own system environment variable like: SET esfolder=C:\Tools\Everything\ "%ProgramFiles%\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "C:\Program Files\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" Use "set " in a DOS-Box to see what is there already. īut this also works for example with %ProgramFiles%.
Or -if possible with that tool (if it doesn't need other files)- put that exe to your TC folder and use: %Commander_Path%\Tools\ES\es.exe D:\Data\WINWORD\. Or SUBST the folder with the es.exe to a drive letter and use next: T:\es.exe D:\Data\WINWORD\. Me think that was HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\ (i don't know if that work for tools used with arguments too?) Or add es.exe to the registry as well know executable as like Notepad and Paint for example. Īlternative add the folder with the es.exe to your systems PATH variable (not really recommended to do that with every tool) You have to enter the full path to the folder with the es.exe: C:\Tools\Everything\es.exe D:\Data\WINWORD\. Make sure you entered the name correctly and repeat the process." I wanted to enter this in the TC command line:Įs.exe D:\Data\WINWORD\ -date-modified -date-created -size -extension -export-csv results.csv #// STORE (see "gci | gm" for complete list): "" -f $Spacer, $objChild, $objChild.LastWriteTime ,$objChild.CreationTime, $objChild.Length, $objChild.Extension #// Files in root or in sub folder? => different output format: $objChildren = get-childitem $strStartDir #| sort-object Name # Function which shows a directory tree of a given folder. #- execute the script with a folder as parameter (Show-DirectoryTree C:\Temp) #- dot source the *.ps1 file (.\Show-DirectoryTree.ps1) #- save script as *.ps1 file (Show-DirectoryTree.ps1) # einem eigenen Skript ist hier, dass man so das Ausgabeformat genau an # Hier mal ein Skript, welches die Vorgehensweise zeigt. # Verzeichnisebenen und ausgeben kann dies ebenso erreicht werden. # Powershell kann das auch, wenn auch etwas umständlicher, denn hier gibt # den Befehl „Tree“ der einen Verzeichnisbaum der Verzeichnisse (und # Seit DOS und jetzt in der Eingabeaufforderung gibt es schon seit Jahren The Export-Csv PowerShell cmdlet can help us out with these as well by specifying whatever delimiter we need.# Verzeichnisbaum mit Powershell darstellen Instead, perhaps you need to create a file with a lot of data that uses tabs as separators or maybe even semicolons. Occasionally, you may find yourself needing to create a CSV file that doesn’t use the usual list separator (comma) to separate fields. The Append parameter allows you to add rows to the CSV rather than overwriting an existing file.Īnother useful parameter is Delimiter. No problem though if you’re using the Append parameter. If you work with many different CSV files or data sources, you might learn the hard way that Export-CSV overwrites existing files. If you’d rather now see this line, a popular parameter is NoTypeInformation which eliminates this line entirely.
In Windows PowerShell 5.1, Export-CSV cmdlte the type of object that created the CSV file. This allows you to include fields with spaces as well. Notice that the command uses the double quote around each row entry.