Join-NAVApplicationObjectFile
Join-NAVApplicationObjectFile
Combines multiple application object files into one text file.
Syntax
Parameter Set: Default
Join-NAVApplicationObjectFile [-Source] <String[]> [-Destination] <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
Use the Join-NAVApplicationObjectFile to combine the application objects in the specified folder into a single text file.
Parameters
-Destination<String>
Specifies the name and location of the generated text file.
For example, to generate the MyObjects.txt file in the current folder, type .\MyObjects.txt
.
Aliases |
none |
Required? |
true |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Force
Forces the cmdlet to overwrite any existing files in the Result folder.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Source<String[]>
Specifies the folder that stores the text files with application objects that you want to merge into a single text files with all application objects.
For example, to use all text files in the SOURCE folder that is a subfolder to the current folder, type .\SOURCE\*.txt
.
Aliases |
Result,PSPath |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName, ByValue) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Examples
-------------------------- EXAMPLE 1 --------------------------
Description
-----------
This example merges a list of files with application objects, such as COD1.TXT and COD2.TXT, into a single, larger file, all-codeunits.txt. When the merge completes, the status is shown with information about the file that was created.
PS C:\> Join-NAVApplicationObjectFile -Source C:\Solution\TXT\COD*.txt -Destination C:\Solution\all-codeunits.txt