File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<OutputType >Exe</OutputType >
5
5
<TargetFramework >net6.0</TargetFramework >
6
+ <AssemblyVersion >1.0.0.2</AssemblyVersion >
7
+ <FileVersion >1.0.0.2</FileVersion >
8
+ <ApplicationIcon >icon32.ico</ApplicationIcon >
6
9
</PropertyGroup >
7
10
8
11
<ItemGroup >
9
12
<None Remove =" location.txt" />
10
13
</ItemGroup >
11
14
12
15
<ItemGroup >
16
+ <Content Include =" icon32.ico" />
13
17
<Content Include =" location.txt" >
14
18
<CopyToOutputDirectory >Always</CopyToOutputDirectory >
15
19
</Content >
Original file line number Diff line number Diff line change 1
- using System ;
1
+ // Current ver: 1.0.0.2
2
+
3
+ using System ;
2
4
using System . IO ;
3
5
4
6
namespace DeleteJavaCheck ;
@@ -11,17 +13,18 @@ static void Main(string[] args)
11
13
{
12
14
Console . WriteLine ( "DeleteJavaCheck Running" ) ;
13
15
14
- String [ ] lines = File . ReadAllLines ( @"location.txt" ) ;
16
+ string [ ] lines = File . ReadAllLines ( @"location.txt" ) ;
15
17
for ( int i = 0 ; i < lines . Length ; i ++ )
16
18
{
17
19
if ( lines [ i ] [ ..1 ] != "#" )
18
20
{
19
- f = ( lines [ i ] ) + "\\ JavaCheck.jar" ;
21
+ f = lines [ i ] + "\\ JavaCheck.jar" ;
20
22
if ( File . Exists ( f ) )
21
23
{
22
24
File . Delete ( f ) ;
23
25
Console . WriteLine ( "File deleted!" ) ;
24
- } else
26
+ }
27
+ else
25
28
{
26
29
Console . WriteLine ( "File doesn't exist, and couldn't be deleted." ) ;
27
30
}
You can’t perform that action at this time.
0 commit comments