如何在Windows环境下设置环境变量并在C中运行进程 [英] How to set environment variable and run a process in C for Windows

查看:137
本文介绍了如何在Windows环境下设置环境变量并在C中运行进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以向我提供用于设置环境变量并在Windows中执行进程的C代码吗?

Can anybody please provide me C code for setting an environment variable and execute a process in Windows?

推荐答案

ShellExecute是您运行进程的方式.为什么要用C编程Windows?再也没有人这样做了.
ShellExecute is how you run a process. Why are you programming windows in C ? No-one does that, anymore.


这篇关于如何在Windows环境下设置环境变量并在C中运行进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆