2011-12-01 65 views
2

我意識到這將是一個奇特的問題,但我無法找到答案。在Visual Studio 6中查找生成輸出(visual basic)

我試圖修復和增強一箇舊的基於視覺的基於基礎的應用程序。

我的問題是:其中是輸出目錄與編譯的二進制文件?

謝謝。

如果需要澄清,請詢問。

+0

很難知道您是在問一個GUI IDE編譯位置編譯的二進制文件或如何在命令行編譯中指定路徑。 – Bob77

+0

對不起,我的意思是GUI IDE。 – CatZilla

回答

8

在.VBP,如果有一個行指定這樣

Path32="C:\" 

然後將所得EXE將在該位置建立的路徑。否則,它將被構建在與.VBP文件相同的目錄中。該路徑也可以是關係型的,可能不是完全合格的路徑。

0

VB6沒有等效的'bin/lib'輸出目錄。當你編譯一個VB6項目時,默認是編譯到與項目(vbp文件)相同的文件夾。也可以編譯爲用戶可用的任何其他文件夾。

+1

另請注意,任何中介(obj)文件在編譯結束時被刪除。 – Deanna

4

我想你想要/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. 

在這裏可以正常工作。