与命令提示符执行有关 [英] related to command prompt execution

查看:129
本文介绍了与命令提示符执行有关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




当目录名称之间存在间隙时,在从命令提示符下编译c和c ++文件时遇到了问题.

例如:-C:\ Program Files>

在上面的示例中,程序"和文件"之间存在间隙...类似文档和设置"之类的目录....当要在此类目录中编译文件时,如何解决此问题...

hi ,


i am facing problem while compiling c and c++ files from command prompt when there is gap between the directory names....

example:-C:\Program Files>

in above example there is gap between "program " and " Files"... similarly directories like "Documents and Settings" .... how can we solve this problem when files to be compiled in these kind of directories...

推荐答案

就像您在问题中所做的一样!将它们放在双引号中.命令处理器(和许多其他程序)知道如何从带有嵌入式空格的文件名(和其他内容)中去除引号.

例如:
Just as you did in your question! Put them in double quotes. The command processor (and many other programs) knows how to strip quotes from around file names (and other things) with embedded spaces.

For example:
progname "this is all argv[1]" argv2
progname argv1 argv2 argv3



干杯,
彼得



Cheers,
Peter


首先,从命令提示符处检查目录名称是什么.例如
c:>程序文件被命名为c:> progra〜1.
C ++基础知识
First you check from command prompt what is the directory name. For example
c:>program files are named as c:>progra~1.
C++ Basics


这篇关于与命令提示符执行有关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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