Good morning all,
I have created a BOM drawing with all balloons positioned as I want them. I would like to create a second sheet which is exactly the same but without the "Rev" column in the BOM table as it is for a different audience. Is there a way to copy the position of the balloons from the original drawing?
The way I would do it would be to right mouse on the sheet tab and then use copy sheet and modify by table to remove the column I don't want.
I need to loop through certain files in a given directory and run the following on each file:
copy /b BOMMarker.txt+InputFile.dat OutputFile.txt
This inserts the contents of the BOMMarker.txt file at the start of the InputFile.dat and writes the output to OutputFile.txt
I found this question which explains how I can loop through the folder to load each file into Powershell, but how do I apply the "copy /b" command so that I can get the BOM marker at the start of each file?
Try the following code:
Regards, Dan N.
foreach ($file in gci $dir -Filter "*.dat")
New-Item -ItemType file $OutFile –force
Get-Content $BomFile,$file | Set-Content $OutFile