Join-NAVApplicationObjectFile
Combines multiple application object files into one text file.
Syntax
Join-NAVApplicationObjectFile
[-Source] <String[]>
[-Destination] <String>
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Use the Join-NAVApplicationObjectFile to combine the application objects in the specified folder into a single text file.
Examples
EXAMPLE 1
PS C:\>Join-NAVApplicationObjectFile -Source C:\Solution\TXT\COD*.txt -Destination C:\Solution\all-codeunits.txt
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.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Destination
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.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
Forces the cmdlet to overwrite any existing files in the Result folder.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Source
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.
Type: | String[] |
Aliases: | Result, PSPath |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |