本帖最后由 nence 于 2009-08-14 21:46:54 编辑

解决方案 »

  1.   

    不知道你的具体内容,只能猜猜看了,你这么看看,注意 notepad.exe 后面的空格 
    Shell "notepad.exe " & App.Path + "\data\" + DataGrid2.Text + DataGrid2.Columns("class_name").CellValue
      

  2.   

    (1)"notepad.exe" 与 要打开的文件路径之间一定要有空格;
    (2) notepad.exe能打开App.Path + "\data\" + DataGrid2.Text + DataGrid2.Columns("class_name").CellValue?先用记事本直接试一试.以免浪费时间.
      

  3.   

    Shell """" & "notepad.exe" & App.Path + "\data\" + DataGrid2.Text + DataGrid2.Columns("class_name").CellValue(DataGrid2.Book) + \indoors\" + DataGrid1.Columns("class_settings").CellValue(DataGrid1.Book) + ".ini" & """"
      

  4.   

    Shell"""" & "notepad.exe " & App.Path + "\data\" + DataGrid2.Text + DataGrid2.Columns("class_name").CellValue(DataGrid2.Book) + \indoors\" + DataGrid1.Columns("class_settings").CellValue(DataGrid1.Book) + ".ini" & """"