Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   How to check if folder or file is present in SourceSafe (https://www.kinook.com/Forum/showthread.php?t=5350)

andrewp 05-22-2015 06:58 AM

How to check if folder or file is present in SourceSafe
 
Is there a way to check if a folder or file is present in soucesafe. I am trying to create a new folder with a version number for each major build, and add replace files in this folder on each build. I need to detect a)if the major folder already exists b)if files within the folder exist.

Thanks

kinook 05-22-2015 07:13 AM

See the SourceSafe docs, but I would try the Locate, Filetype, Properties, or Status operations. Not all ops are populated in the list in the SourceSafe action, but other operations can be typed in, or you can call ss.exe directly.

andrewp 05-22-2015 08:12 AM

thanks. Have old version 6.1 so only have the last 2 properties.
On a related note, how does one get the output from SS to the Vis. Build Pro. I've looked at the old logging example, but can't quite see how it's done

kinook 05-22-2015 09:09 AM

Normally, any output from programs will be captured automatically. Here is the build output from the Get Latest step in the SourceSafe.bld sample.

5/22/2015 8:08:32 AM: -------------------- Starting Build: 'SourceSafe.bld' --------------------
5/22/2015 8:08:32 AM: Building project step 24 - Get Latest...
$/:
$/Executables:
CPPNETApp.exe
CSNETLib.dll
FirstVB.exe
FirstVJ.exe
ManagedCPPApp.exe
SecondVB.dll
ThirdVB.ocx
VBNETApp.exe
VCdll.dll
VCexe.exe

$/Source:
MyNETProjects.2005.sln
MyNETProjects.2008.sln
MyNETProjects.2010.sln
MyNETProjects.2012.sln
MyNETProjects.2013.sln
MyNETProjects.2015.sln
MyNETProjects.71.sln
MyNETProjects.sln
MyProjects.dsw
MyProjects.vbg
Project.manifest

$/Source/NET:
$/Source/NET/CPPNETApp:
ChildFrm.cpp
ChildFrm.h
CPPNETApp.2005.vcproj
CPPNETApp.2008.vcproj
CPPNETApp.71.vcproj
CPPNETApp.cpp
CPPNETApp.h
CPPNETApp.rc
CPPNETApp.vcproj
CPPNETAppDoc.cpp
CPPNETAppDoc.h
CPPNETAppView.cpp
CPPNETAppView.h
MainFrm.cpp
MainFrm.h
Resource.h
stdafx.cpp
stdafx.h

$/Source/NET/CPPNETApp/res:
CPPNETApp.ico
CPPNETApp.manifest
CPPNETApp.rc2
CPPNETAppDoc.ico
Toolbar.bmp

$/Source/NET/CSNETLib:
AssemblyInfo.cs
Class1.cs
CSNETLib.2005.csproj
CSNETLib.2008.csproj
CSNETLib.2010.csproj
CSNETLib.2012.csproj
CSNETLib.2013.csproj
CSNETLib.2015.csproj
CSNETLib.71.csproj
CSNETLib.csproj

$/Source/NET/CSWebApp:
AssemblyInfo.cs
CSWebApp.71.csproj
CSWebApp.csproj
Default.aspx.cs
Global.asax.cs
Global.asax.resx
WebForm1.aspx.cs
WebForm1.aspx.resx

$/Source/NET/ManagedCPPApp:
AssemblyInfo.cpp
ManagedCPPApp.2005.vcproj
ManagedCPPApp.2008.vcproj
ManagedCPPApp.71.vcproj
ManagedCPPApp.cpp
ManagedCPPApp.rc
ManagedCPPApp.vcproj
resource.h
stdafx.cpp
stdafx.h

$/Source/NET/NETSetup:
NETSetup.2005.vdproj
NETSetup.2008.vdproj
NETSetup.2010.vdproj
NETSetup.2012.vdproj
NETSetup.2013.vdproj
NETSetup.2015.vdproj
NETSetup.71.vdproj
NETSetup.vdproj

$/Source/NET/VBNETApp:
AssemblyInfo.vb
Form1.resx
Form1.vb
VBNETApp.2005.vbproj
VBNETApp.2008.vbproj
VBNETApp.2010.vbproj
VBNETApp.2012.vbproj
VBNETApp.2013.vbproj
VBNETApp.2015.vbproj
VBNETApp.71.vbproj
VBNETApp.vbproj

$/Source/VS6:
$/Source/VS6/FirstVB:
First.frm
FirstVB.vbp

$/Source/VS6/FirstVJ:
FirstVJ.sln
FirstVJ.vjp
Form1.java

$/Source/VS6/Installer:
Installer.sln
Installer.wip

$/Source/VS6/SecondVB:
Class2.cls
SecondVB.vbp

$/Source/VS6/ThirdVB:
ControlA.ctl
ThirdVB.vbp

$/Source/VS6/VCdll:
Resource.h
StdAfx.cpp
StdAfx.h
VCdll.cpp
VCdll.def
VCdll.dsp
VCdll.h
VCdll.rc

$/Source/VS6/VCexe:
exeDoc.cpp
exeDoc.h
exeView.cpp
exeView.h
MainFrm.cpp
MainFrm.h
resource.h
StdAfx.cpp
StdAfx.h
VCexe.cpp
VCexe.dsp
VCexe.h
VCexe.rc

$/Source/VS6/VCexe/res:
exe.ico
exeDoc.ico
Toolbar.bmp

$/Source/VS6/VClib:
VClib.cpp
VClib.dsp
VClib.h


All times are GMT -5. The time now is 11:43 PM.


Copyright © 1999-2023 Kinook Software, Inc.