Skip to content

Commit

Permalink
Icon, fixes, features
Browse files Browse the repository at this point in the history
- About and BasicCommands page added
- fixed output of some commands
- removed Internet capabilities for performance
- updated icon
  • Loading branch information
Empyreal96 committed Jul 5, 2022
1 parent 39f0419 commit 925872b
Show file tree
Hide file tree
Showing 67 changed files with 29 additions and 34 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Command Prompt for W10MEasily access 'Windows Command Prompt' on supported Windows Mobile devices, this makes use of Telnet to make the connection## Requirements:- Windows 10 Mobile 14393 and up.- [CMD Injected](https:/fadilfadz01/CMD.Injector) to the device.- Loopback connection enabled (details in-app)### Acknowledgements:- [BAstifan](https:/basharast) for the TelnetClient class.- [Fadil Fadz](https:/fadilfadz01) for CMD Injector and minor help with handling stout and sterr
# Command Prompt for W10MEasily access 'Windows Command Prompt' on supported Windows Mobile devices, this makes use of Telnet to make the connection![](screenshots/1.png) ![](screenshots/2.png) ![](screenshots/3.png)## Requirements:- Windows 10 Mobile 14393 and up.- [CMD Injected](https:/fadilfadz01/CMD.Injector) to the device.- Loopback connection enabled (details in-app)### Acknowledgements:- [BAstifan](https:/basharast) for the TelnetClient class.- [Fadil Fadz](https:/fadilfadz01) for CMD Injector and minor help with handling stout and sterr
Expand Down
Binary file added screenshots/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
44 changes: 22 additions & 22 deletions BasicCommandsPage.xaml → src/BasicCommandsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
Margin="5,10,5,15" RequestedTheme="Default"/>
</RelativePanel>
<RelativePanel Grid.Row="1">
<TextBox x:Name="cmdinfoheader" RelativePanel.AlignLeftWithPanel="True" Text="View some basic commands for use in Command Prompt. Text inside [] is optional" TextWrapping="Wrap" RequestedTheme="Default" IsHitTestVisible="False" IsReadOnly="True" Margin="-2,1,-2,0" RelativePanel.AlignRightWithPanel="True" Background="#FFCCCCCC" BorderBrush="#FFCCCCCC"/>
<ScrollViewer x:Name="SyntaxScroller" RelativePanel.Below="cmdinfoheader" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True">
<Grid x:Name="SyntaxGrid" Margin="5,5,5,5" ScrollViewer.VerticalScrollMode="Enabled" RelativePanel.Below="SyntaxInfo" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" BorderBrush="#FF686868" Background="#FF2D2D30" FocusVisualSecondaryBrush="#FF686868">
<TextBox x:Name="cmdinfoheader" RelativePanel.AlignLeftWithPanel="True" Text="View some basic commands for use in Command Prompt. Text inside [] is optional" TextWrapping="Wrap" RequestedTheme="Default" IsHitTestVisible="False" IsReadOnly="True" Margin="-2,1,-2,0" RelativePanel.AlignRightWithPanel="True" Background="{x:Null}" BorderBrush="{x:Null}"/>
<ScrollViewer x:Name="SyntaxScroller" RelativePanel.Below="cmdinfoheader" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" Margin="0,10,0,0">
<Grid x:Name="SyntaxGrid" Margin="5,5,5,5" ScrollViewer.VerticalScrollMode="Enabled" RelativePanel.Below="SyntaxInfo" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" BorderBrush="#FF686868" FocusVisualSecondaryBrush="#FF686868">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
Expand All @@ -50,68 +50,68 @@
</Grid.RowDefinitions>


<Border Background="#FFCCCCCC" Grid.Row="0" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="cdInfo" Grid.Row="0" TextWrapping="Wrap" Grid.Column="0" Text="cd = Change Directory, this allows you to change folders" Margin="4,0,2,0"/>
<Border Grid.Row="0" Grid.Column="0" RequestedTheme="Default" BorderThickness="1,1,1,1" BorderBrush="#FF1E1E1E">
<TextBlock x:Name="cdInfo" Grid.Row="0" TextWrapping="Wrap" RequestedTheme="Default" Grid.Column="0" Text="cd = Change Directory, this allows you to change folders" Margin="4,0,2,0"/>
</Border>
<Border Background="#FFCCCCCC" Grid.Row="0" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="0" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="cdSyntax" Grid.Column="1" TextWrapping="Wrap" Grid.Row="0" Text="info" Margin="4,0,2,0"/>
</Border>

<Border Background="#FFCCCCCC" Grid.Row="1" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="1" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="dirInfo" Grid.Row="1" TextWrapping="Wrap" Grid.Column="0" Text="dir = Directory, use this to list files inside the current folder" Margin="4,0,2,0"/>
</Border>
<Border Background="#FFCCCCCC" Grid.Row="1" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="1" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="dirSyntax" Grid.Column="1" TextWrapping="Wrap" Grid.Row="1" Text="Syntax" Margin="4,0,2,0"/>
</Border>

<Border Background="#FFCCCCCC" Grid.Row="2" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="2" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="setInfo" Grid.Row="2" TextWrapping="Wrap" Grid.Column="0" Text="set = Set Variables, use this to Read/Modify/Create environment variables." Margin="4,0,2,0"/>
</Border>
<Border Background="#FFCCCCCC" Grid.Row="2" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="2" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="setSyntax" Grid.Column="1" TextWrapping="Wrap" Grid.Row="2" Text="Syntax" Margin="4,0,2,0"/>
</Border>

<Border Background="#FFCCCCCC" Grid.Row="3" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="3" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="copyInfo" Grid.Row="3" TextWrapping="Wrap" Grid.Column="0" Text="copy/xcopy = Copy, use either one to copy files" Margin="4,0,2,0"/>
</Border>
<Border Background="#FFCCCCCC" Grid.Row="3" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="3" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="copySyntax" Grid.Column="1" TextWrapping="Wrap" Grid.Row="3" Text="Syntax" Margin="4,0,2,0"/>
</Border>



<Border Background="#FFCCCCCC" Grid.Row="5" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="5" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="mkdirInfo" Grid.Row="5" TextWrapping="Wrap" Grid.Column="0" Text="mkdir = Make Directory" Margin="4,0,2,0"/>
</Border>
<Border Background="#FFCCCCCC" Grid.Row="5" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="5" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="mkdirSyntax" Grid.Row="5" TextWrapping="Wrap" Grid.Column="1" Text="Syntax" Margin="4,0,2,0"/>
</Border>

<Border Background="#FFCCCCCC" Grid.Row="6" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="6" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="renameInfo" Grid.Row="6" TextWrapping="Wrap" Grid.Column="0" Text="rename = Rename File" Margin="4,0,2,0"/>
</Border>
<Border Background="#FFCCCCCC" Grid.Row="6" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="6" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="renameSyntax" Grid.Row="6" TextWrapping="Wrap" Grid.Column="1" Text="Syntax" Margin="4,0,2,0"/>
</Border>

<Border Background="#FFCCCCCC" Grid.Row="7" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="7" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="moveInfo" Grid.Row="7" TextWrapping="Wrap" Grid.Column="0" Text="move = Move File" Margin="4,0,2,0"/>
</Border>
<Border Background="#FFCCCCCC" Grid.Row="7" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="7" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="moveSyntax" Grid.Row="7" TextWrapping="Wrap" Grid.Column="1" Text="Syntax" Margin="4,0,2,0"/>
</Border>

<Border Background="#FFCCCCCC" Grid.Row="8" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="8" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="rmdirInfo" Grid.Row="8" TextWrapping="Wrap" Grid.Column="0" Text="rmdir / rd = Remove Directory" Margin="4,0,2,0"/>
</Border>
<Border Background="#FFCCCCCC" Grid.Row="8" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="8" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="rmdirSyntax" Grid.Row="8" TextWrapping="Wrap" Grid.Column="1" Text="Syntax" Margin="4,0,2,0"/>
</Border>

<Border Background="#FFCCCCCC" Grid.Row="9" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="9" Grid.Column="0" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="typeInfo" Grid.Row="9" TextWrapping="Wrap" Grid.Column="0" Text="type = Type, this prints the text of a file on-screen" Margin="4,0,2,0"/>
</Border>
<Border Background="#FFCCCCCC" Grid.Row="9" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<Border RequestedTheme="Default" Grid.Row="9" Grid.Column="1" BorderBrush="#FF1E1E1E" BorderThickness="1,1,1,1">
<TextBlock x:Name="typeSyntax" Grid.Row="9" TextWrapping="Wrap" Grid.Column="1" Text="Syntax" Margin="4,0,2,0"/>
</Border>

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions MainPage.xaml.cs → src/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ private async void SendCommandBtn_Click(object sender, RoutedEventArgs e)
ProgressBarControl(true);
var text = CMDtestText.Text;
CMDtestText.Text = text.Remove(text.Length - 1);
CMDtestText.Text += $"{SendCommandText.Text}\r\n";
CMDtestText.Text += $"{SendCommandText.Text}\n";
StorageFile tmp = await ApplicationData.Current.LocalFolder.GetFileAsync("cmdstring.txt");

string command = SendCommandText.Text;
if (command.Length != 0)
{
CMDtestText.Text += "\r\n";
CMDtestText.Text += "\n";
await client.Send($"{command} > \"{LocalPath}\\cmdstring.txt\" 2>&1");

//await Task.Delay(500);
Expand All @@ -165,10 +165,10 @@ private async void SendCommandBtn_Click(object sender, RoutedEventArgs e)
string cd = File.ReadAllText($"{LocalPath}\\cmdstring.txt");
foreach (string results in resArray)
{
CMDtestText.Text += $"{results}\r\n";
CMDtestText.Text += $"{results}\n";
// await Task.Delay(500);
}
CMDtestText.Text += $"\r\n\r\n{cd}";
CMDtestText.Text += $"\n\n{cd}";

SendCommandText.Text = "";

Expand Down Expand Up @@ -238,7 +238,7 @@ private async void MenuFlyoutItem_Click_2(object sender, RoutedEventArgs e)
await client.Send($"cd /d \"{scriptParent}\" > \"{LocalPath}\\cmdstring.txt\" 2>&1");


CMDtestText.Text += $"cd /d \"{scriptParent}\"\r\n";
CMDtestText.Text += $"cd /d \"{scriptParent}\"\n";
await client.Send($"echo %CD%^> > \"{LocalPath}\\cmdstring.txt\" 2>&1");

string results = File.ReadAllText($"{LocalPath}\\cmdstring.txt");
Expand Down
7 changes: 1 addition & 6 deletions Package.appxmanifest → src/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Identity
Name="WPCommandPrompt"
Publisher="CN=Empyreal96"
Version="0.0.24.0" />
Version="0.0.27.0" />

<mp:PhoneIdentity PhoneProductId="7c02d3dd-afe8-4c25-a609-a888b4adf4f7" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down Expand Up @@ -48,9 +48,4 @@
</uap:VisualElements>
</Application>
</Applications>

<Capabilities>
<Capability Name="internetClientServer"/>
<Capability Name="privateNetworkClientServer"/>
</Capabilities>
</Package>
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 925872b

Please sign in to comment.