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                 

 

相关文章:

  • 2022-12-23
  • 2021-09-01
  • 2022-02-08
  • 2021-12-07
  • 2021-05-12
猜你喜欢
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-02-02
  • 2022-02-24
  • 2021-05-02
  • 2021-08-26
相关资源
相似解决方案