Files
VuongKB/EFFORTS/GBCNC/AUG Serial Number.md
2026-04-04 21:42:15 -07:00

50 lines
1.1 KiB
Markdown
Executable File

Files appear in
`C:\FTPROOT`
Files are named
`PRNT0000.DAT`
Files contain
`
OUTPUT DATE AND TIME. 20240605 25016 1SAI 987
C:\FTPROOT>type PRNT0013.dat
OUTPUT DATE AND TIME. 20240605 64948 2SAI 1
C:\FTPROOT>type PRNT0011.dat
OUTPUT DATE AND TIME. 20240605 61301 1SAI 998
C:\FTPROOT>type PRNT0004.dat
OUTPUT DATE AND TIME. 20240605 40917 1SAI 991
C:\FTPROOT>type PRNT0005.dat
OUTPUT DATE AND TIME. 20240605 42557 1SAI 992
`
Potential pwershell code:
```
```Code:
$FileName = "C:\PrintFolder\~~actions~~\DELETE to START PRINTING.txt"
$PrintFolder = "C:\PrintFolder\Original size"
$InputFolder = "C:\InputFolder"
$Continue = 1
while ($Continue = 1) {
if(#folder is empty
(Get-ChildItem $PrintFolder -force | Select-Object -First 1 | Measure-Object).Count -eq 0)
{ start-sleep -s 10
if ((Test-Path $FileName)) {#check if file is there, then delete it
Remove-Item $FileName
}
else {
#Move a file into folder
Get-ChildItem $InputFolder | Get-Random -count 1 | Move-Item -Destination $PrintFolder
}
}
else {#Keep Cycling
}
}
```
```