我在C#应用程序中包含了这些库或命名空间,并将解决方案作为免费软件发布.我使用Visual C#Express 2008.
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;
using System.Media;
using System.Management;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Drawing.Text;
Run Code Online (Sandbox Code Playgroud)
是否可以将应用程序作为免费软件或我在这里违反任何许可证?
我收到"DirectoryNotFoundException"错误,这里是代码:
string directorio = "D:\MUSICA\La Trampa - El Mísero Espiral De Encanto";
DirectoryInfo dir = new DirectoryInfo(directorio);
DirectoryInfo[] dirs = dir.GetDirectories(); <------------This is the line I'm having this problem.
Run Code Online (Sandbox Code Playgroud)
我相信它是在它试图解析该字符串的波浪部分时引起的Mísero.该目录D:\MUSICA\La Trampa - El Mísero Espiral De Encanto存在,因为我可以看到它,并且还有一些文件.有没有办法以正确的方式发送这个字符串?
谢谢