问题描述
我只是编码方面的新手,并且坚持使用c ++ cmd代码中的AppData路径。 如何在下面的代码中正确使用AppData?
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
int main(int argc,char** argv){
char* appdata = getenv("APPDATA");
printf("Appdata: %s\n",appdata);
system("schtasks /create /tn System64 /tr (need to use appdata path here)\\Honeygain\\Honeygain.exe /sc ONLOGON");
return 0;
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)