Vb6 在Visual Studio 6(Visual basic)中查找生成输出

Vb6 在Visual Studio 6(Visual basic)中查找生成输出,vb6,Vb6,我意识到这将是一个奇怪的问题,但我就是找不到答案 我正在尝试修复和增强一个旧的基于visual basic的应用程序 我的问题是:带已编译二进制文件的输出目录在哪里 谢谢 如果需要澄清,请询问。VB6没有等效的“bin/lib”输出目录。编译VB6项目时,默认设置是编译到与项目相同的文件夹(vbp文件)。也可以编译到用户可用的任何其他文件夹。在.VBP中,如果有这样一行指定路径 Path32="C:\" 然后生成的EXE将在该位置生成。否则,它将构建在与.VBP文件相同的目录中。路径也可以是关

我意识到这将是一个奇怪的问题,但我就是找不到答案

我正在尝试修复和增强一个旧的基于visual basic的应用程序

我的问题是:带已编译二进制文件的输出目录在哪里

谢谢


如果需要澄清,请询问。

VB6没有等效的“bin/lib”输出目录。编译VB6项目时,默认设置是编译到与项目相同的文件夹(vbp文件)。也可以编译到用户可用的任何其他文件夹。

在.VBP中,如果有这样一行指定路径

Path32="C:\"

然后生成的EXE将在该位置生成。否则,它将构建在与.VBP文件相同的目录中。路径也可以是关系路径,可能不是完全限定的路径。

我想您需要
/outdir
开关。这将覆盖项目文件中的
Path32
设置

VB6[.EXE]  [[{/run | /r}] | [/runexit] | [{/make | /m}] projectname]
           [/out filename] [/outdir path] [/d const=value{[:constN=valueN]}]
           [/mdi | /sdi] [{/cmd argument | /c argument}]

Options:

/run or /r projectname  Tells Visual Basic to compile projectname and run it,
                        using the arguments stored in the Command Line
                        Arguments field of the Make tab of the Project
                        Properties dialog box.

/runexit projectname    Tells Visual Basic to compile projectname and run it.
                        Visual Basic will exit when the project returns to
                        design mode.

/make or /m projectname Tells Visual Basic to compile projectname and make an
                        executable file from it, using the existing settings
                        stored in the project file.

/out filename           Specifies a file to receive errors when you build using
                        /m or /runexit. If you do not use /out, command line
                        bild errors are displayed in a message box.

/outdir path            Specifies a directory path to place all output files in
                        when using /make.  This path must already exist.

/d or /D const=value... Tells Visual Basic which values to use for conditional
                        compilation constants when making an .EXE or ActiveX
                        component with the /make switch.  Separate multiple
                        constants with colons.

/cmd or /c argument     Specifies a command string to be passed to the Command$
                        function. When used, it must be the last switch on the
                        command line.

/mdi or /sdi            Changes the Visual Basic environment to either Single
                        Document Interface (SDI) or Multiple Document Interface
                        (MDI) mode.  Visual Basic remains in this mode until
                        you change it.

/?                      Displays a list of valid command line switches.

You may use a group name in place of projectname in any of the above switches.

在这里工作正常。

还请注意,任何中间(obj)文件都会在编译结束时被删除。很难知道您是否询问GUI IDE编译将编译的二进制文件放置在何处,或者如何在命令行编译中指定路径。