using System
using System.Collections.Generic
using System.ComponentModel
using System.Data
using System.Drawing
using System.Linq
using System.Text
using System.Windows.Forms
namespace MovePicture
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent()
}
//启动定猜仿时器
private void btnMove_Click(object sender, EventArgs e)
{
timerMove.Start()
}
//但图片亩兆移动超过窗体的长度是时,位置重新从0开始移动
private void timerMove_Tick(object sender, EventArgs e)
{
if (pbMove.Left > 618)
{
pbMove.Left = 0
}
else
{
pbMove.Left += 迅兆租3
}
}
}
}
结果如图所示
文件数量不大,更名方式固定,可以写一个死的冲唤更名bat
@echo off
set p=%p%
set pa=abc
set pb=abd
set pc=abe
set pd=abf
for %%i in (%pa%,%pb%,%pc%,%pd%) do (
move "%p%\%%i\001" "%p%\%%i\01a"
move "%p%\%%i\002" "%p%\%%i\02b"
move "%p%\%%i\003" "%p%\%%i\03c"
move "%p%\%%i\004" "%p%\%%i\04d")
move "%p%\%pb%\011" "%p%\%pb%\11aa"
move "%p%\%pb%\010" "%p%\%pb%\10ab"
move "%p%\%pb%\009" "%p%\%pb%\09ac"
move "%p%\%pb%\008" "%p%\%pb%\08ad"
move "%p%\%pc%\017" "%p%\%pc%\17aa"
move "%p%\%pc%\016" "%p%\%pc%\16ab"
move "%p%\%pc%\015" "%p%\%pc%\15ac"
move "%p%\%pc%\014" "%p%\%pc%\14ad"
move "%p%\%pc%\013" "%p%\%pc%\13ae"
move "%p%\%pc%\012" "%p%\%pc%\12af"
move "%p%\%pc%\011" "%p%\%pc%\11ag"
move "%p%\%pc%\010" "%p%\%pc%\10ah"
move "%p%\%pc%\009" "%p%\%pc%\09ai"
move "游判燃%p%\%pc%\008" "%p%\%pc%\08aj"
move "%p%\%pd%\013" "%p%\%pd%\13aa"
move "%p%\%pd%\012" "%p%\%pd%\12ab"
move "%p%\%pd%\011" "%p%\%pd%\11ac"
move "%p%\%pd%\010"神虚 "%p%\%pd%\10ad"
move "%p%\%pd%\009" "%p%\%pd%\09ae"
move "%p%\%pd%\008" "%p%\%pd%\08af"
MOVE 批处理移动文件夹可以快速将文件夹物斗和从一个位置移动到另一个位置。它的使用方式是在命令行中输入move指令,后跟源文件夹的路径和目标文件夹的路径。例如,要将源文件夹C:\Users\John\Documents\MyFolder移动到D:\MyFolder,可以使用以下指令:罩盯move C:\Users\John\Documents\MyFolder D:销慎\MyFolder欢迎分享,转载请注明来源:内存溢出
评论列表(0条)