|||
Linux下实现用nohup就可以实现,Windows下稍微复杂些,可参考我下面三个文件:gnss_download.bat、gnss_download.vbs和Readme.txt。
gnss_download.bat文件内容:
@echo off
D:
cd D:\Research\scripts\Python_gnss_download
set a=%time%
echo Start time: %a%
echo start main_gnss_download.py
python main_gnss_download.py 2017 200 3 D:\data_test all wum D:\data_test\site_list.txt
set b=%time%
echo End time: %b%
exit
gnss_download.vbs文件内容:
Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c D:\Research\scripts\Python_gnss_download\gnss_download.bat",vbhide
Readme.txt文件内容:
1.修改gnss_download.bat(后缀名必须是.bat)中的路径:
1)GNSS下载主程序所在的路径。第4行:cd D:\Research\scripts\Python_gnss_download
2)Python命令行对应的参数路径。第8行:python main_gnss_download.py 2017 200 3 D:\data_test all wum D:\data_test\site_list.txt
2.修改gnss_download.vbs(后缀名必须是.vbs)gnss_download.bat所对应的路径:D:\Research\scripts\Python_gnss_download\gnss_download.bat
3.gnss_download.vbs、gnss_download.bat和Python脚本最好放在一个目录下。
4.双击gnss_download.vbs即可(一次双击就行,然后到对应目录下查看是否正常下载)。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-26 19:51
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社