删除怪物多余的图

Posted agchuanqi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了删除怪物多余的图相关的知识,希望对你有一定的参考价值。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{

private void Form1_Load(object sender, EventArgs e)
{

}


public Form1()
{
InitializeComponent();
int num = 360;

for (int i = 0; i < 8; ++i)
{
for (int j = 4; j < 10; ++j)
{
string str = "" + (num + i*10+j);
while (str.Length < 6) str = "0" + str;
string pSavedPath1 = "f:/hup4/" + (str) + ".bmp";

if (File.Exists(pSavedPath1))
{
File.Delete(pSavedPath1);
}
}
}
num += 80;
for (int i = 0; i < 8; ++i)
{
for (int j = 6; j < 10; ++j)
{
string str = "" + (num + i * 10 + j);
while (str.Length < 6) str = "0" + str;
string pSavedPath1 = "f:/hup4/" + (str) + ".bmp";

if (File.Exists(pSavedPath1))
{
File.Delete(pSavedPath1);
}
}
}
num += 80;
for (int i = 0; i < 8; ++i)
{
for (int j = 6; j < 10; ++j)
{
string str = "" + (num + i * 10 + j);
while (str.Length < 6) str = "0" + str;
string pSavedPath1 = "f:/hup4/" + (str) + ".bmp";

if (File.Exists(pSavedPath1))
{
File.Delete(pSavedPath1);
}
}
}
}
}
}

以上是关于删除怪物多余的图的主要内容,如果未能解决你的问题,请参考以下文章

怎样在word删除多余的表格

Cadence中如何删除多余的机械孔

ArcGIS怎么批量删除多余节点?

ArcGIS怎么批量删除多余节点?

uefi启动中删除多余的启动项

如何删除多余的控件