我想要你的帮助。请帮助我。
问题描述:
我想要c#代码从系统中读取所有excel并使用c#发送到文件夹.net
请帮助我 紧急 我想要。
i want c# code for reading all excels from the system and send to folder using c#.net
please help me urgently i want.
答
您可以从 Excel Data Reader [ ^ ]
您需要使用目录类
用于执行此类操作。读取目录下的所有文件,找到文件后使用File.Copy
,File.Move
将文件夹归档给你希望他们进来。
MSDN中的目录类 [ ^ ]
MSDN中的文件类 [ ^ ]
祝你好运,
OI
You need to use theDirectory Class
for doing such thing. Read all the files under a directory and after finding the files useFile.Copy
,File.Move
methods to folder you want them to be in.
Directory Class in MSDN[^]
File Class in MSDN[^]
Good luck,
OI