mirror of
https://github.com/PhoenixPE/PhoenixPE.git
synced 2025-09-17 02:28:09 +02:00
add docs for Binmay and DriveGetType
@@ -13,12 +13,14 @@ Click on a Command below for more information.
|
|||||||
| [[AddStartupConfig]] | Add a free-form line of code to the startup config. |
|
| [[AddStartupConfig]] | Add a free-form line of code to the startup config. |
|
||||||
| [[ApplyBitMask]] | Apply a bitmask to a hex value in a binary string. |
|
| [[ApplyBitMask]] | Apply a bitmask to a hex value in a binary string. |
|
||||||
| [[Associate]] | Associate a file extension with a program. |
|
| [[Associate]] | Associate a file extension with a program. |
|
||||||
|
| [[Binmay]] | Binary Search and Replace Tool. |
|
||||||
| [[BitClear]] | Clear a specific bit in a binary string. |
|
| [[BitClear]] | Clear a specific bit in a binary string. |
|
||||||
| [[BitSet]] | Set a specific bit in a binary string. |
|
| [[BitSet]] | Set a specific bit in a binary string. |
|
||||||
| [[BitToggle]] | Set/Clear a specific bit in a binary string. |
|
| [[BitToggle]] | Set/Clear a specific bit in a binary string. |
|
||||||
| [[ConvertImage]] | Convert an image to the specified format. |
|
| [[ConvertImage]] | Convert an image to the specified format. |
|
||||||
| [[DirDeleteEx]] | Delete a directory if it exists. |
|
| [[DirDeleteEx]] | Delete a directory if it exists. |
|
||||||
| [[DISM]] | Execute DISM with the provided arguments. |
|
| [[DISM]] | Execute DISM with the provided arguments. |
|
||||||
|
| [[DriveGetType]] | Get the drive type (Fixed/Removable,etc). |
|
||||||
| [[FileCopyEx]] | Copy a single file and it's .mui's (if they exist) from a specified directory. |
|
| [[FileCopyEx]] | Copy a single file and it's .mui's (if they exist) from a specified directory. |
|
||||||
| [[FileDeleteEx]] | Delete a file if it exists. |
|
| [[FileDeleteEx]] | Delete a file if it exists. |
|
||||||
| [[FileSearch]] | Search for a file and return it's full path if it exists. |
|
| [[FileSearch]] | Search for a file and return it's full path if it exists. |
|
||||||
|
47
PhoenixAPI/Binmay.md
Normal file
47
PhoenixAPI/Binmay.md
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# Binmay
|
||||||
|
|
||||||
|
Binary Search and Replace Tool.
|
||||||
|
|
||||||
|
This command is a wrapper for Binmay.exe and passes any arguments directly to the executable.
|
||||||
|
You are responsible for checking the return code and handling any errors.
|
||||||
|
|
||||||
|
## Syntax
|
||||||
|
|
||||||
|
```pebakery
|
||||||
|
Binmay,<Args>[,<WorkDir>]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Arguments
|
||||||
|
|
||||||
|
| Argument | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| Args | The arguments to pass to the Binmay executable. |
|
||||||
|
| WorkDir | The full path to the working directory. Default is the exe path. |
|
||||||
|
|
||||||
|
## Return Codes
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| #r | ExitCode provided by the Binmay application. |
|
||||||
|
|
||||||
|
## Remarks
|
||||||
|
|
||||||
|
Make sure to escape double-quotes, percent, etc. in Args.
|
||||||
|
|
||||||
|
See the [Binmay documentation](https://github.com/slorelee/binmay) for more details on Binmay.exe arguments.
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
None.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
### Example 1
|
||||||
|
|
||||||
|
```pebakery
|
||||||
|
|
||||||
|
Echo,"Patching file..."
|
||||||
|
Binmay,"-u #$q%TargetPrograms%\%ProgramFolder%\%ProgramExe%#$q -s 650078007000 -r 880078006000"
|
||||||
|
If,Not,#r,Equal,0,Halt,"Error: Failed to patch [%ProgramFile%]."
|
||||||
|
|
||||||
|
```
|
45
PhoenixAPI/DriveGetType.md
Normal file
45
PhoenixAPI/DriveGetType.md
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# DriveGetType
|
||||||
|
|
||||||
|
Get the drive type (Fixed/Removable,etc).
|
||||||
|
|
||||||
|
## Syntax
|
||||||
|
|
||||||
|
```pebakery
|
||||||
|
DriveGetType,<DriveLetter>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Arguments
|
||||||
|
|
||||||
|
| Argument | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| Drive Letter | The drive letter to query. |
|
||||||
|
|
||||||
|
## Return Codes
|
||||||
|
|
||||||
|
| Token | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| #r | Success returns one of the following values: |
|
||||||
|
|| Unknown |
|
||||||
|
|| Removable |
|
||||||
|
|| Fixed |
|
||||||
|
|| Network |
|
||||||
|
|| CDROM |
|
||||||
|
|| RAMDisk |
|
||||||
|
|
||||||
|
## Remarks
|
||||||
|
|
||||||
|
If the command fails the build will halt.
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
None.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
### Example 1
|
||||||
|
|
||||||
|
```pebakery
|
||||||
|
|
||||||
|
DriveGetType,"C:"
|
||||||
|
|
||||||
|
```
|
Reference in New Issue
Block a user