1 //修改安装目录下autostart.vbs里的路径 2 //打开文件 3 OpenFileMode(FILE_MODE_NORMAL); 4 strPath=INSTALLDIR+"centerAutoRestart"; 5 strName="autostart.vbs"; 6 OpenFile(FHandleA,strPath,strName); 7 //写入行 8 strPath=strPath+"\"+strName; 9 insertStr="temp=""+INSTALLDIR+"centerAutoRestart\autoStart.bat""; 10 FileInsertLine(strPath, insertStr, 1, AFTER); 11 //关闭文件 12 CloseFile(FHandleA); 13