码迷,mamicode.com
首页 > 其他好文 > 详细

删除怪物多余的图

时间:2018-04-22 20:00:33      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:generic   tar   cat   gen   obj   ica   windows   .com   mod   

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);
}
}
}
}
}
}

删除怪物多余的图

标签:generic   tar   cat   gen   obj   ica   windows   .com   mod   

原文地址:https://www.cnblogs.com/agchuanqi/p/8908584.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!