最好是哪位兄弟给我提供一个代码。谢谢 
在线等待

解决方案 »

  1.   

    想通过什么方式?弹出个对话框自己选择文件夹夹?
    如果这样可以用FolderBrowserDialog ..
      

  2.   

    你这说法  我感觉有点问题比较 文件夹 news 的文件夹 里面又有一个文件夹news,,如果 返回的是什么呢?
      

  3.   

    获取路径方式有很多,
    通过调用Process.GetCurrentProcess().MainModule.FileName可获得当前执行的exe的文件名。
    Environment.CurrentDirectory
    Directory.GetCurrentDirectory()
    AppDomain.CurrentDomain.BaseDirectory
    Application.StartupPath
    Application.ExecutablePath
    Assembly.GetExecutingAssembly
    AppDomain.CurrentDomain.SetupInformation.ApplicationBase获取当前应用程序所在的路径。
    至于保存到数据库使用基本的ado.net就行了。