vss cmd line get
-
I am trying to write a simple batch file to get a project from source safe, build it using the vs.net cmd line and then deploy it somewhere. I am using the following line to get the project from vss: ss get $/MyProjects/MyProject1 -R -I- -NL –R -> recursive -I- ->don’t ask for input -NL -> use long names (alternatively –NS for short names) However, this is an asp.net project, all the filenames are being trimmed when getting from vss, this results in files being copied over. I have searched the documentation and on the web and cant find my answer, can anyone help? Thanks, Rob
-
I am trying to write a simple batch file to get a project from source safe, build it using the vs.net cmd line and then deploy it somewhere. I am using the following line to get the project from vss: ss get $/MyProjects/MyProject1 -R -I- -NL –R -> recursive -I- ->don’t ask for input -NL -> use long names (alternatively –NS for short names) However, this is an asp.net project, all the filenames are being trimmed when getting from vss, this results in files being copied over. I have searched the documentation and on the web and cant find my answer, can anyone help? Thanks, Rob
-
Rob, Not sure if it matters or not, but just to be on the safe side could you tell us what OS you are running? Thanks, Jim.
WinXP sp2.
-
WinXP sp2.
Rob, How are you trying to run the batch file? If I open a command prompt (Start | Run | cmd) and type in the following command, I get long file names (the first part is path to my SS.EXE and then the rest is the command options that you provided in your first post). "C:\Program Files\Microsoft Visual Studio\VSS\win32\ss" get $/ -R -I- -NL Thanks, Jim.
-
Rob, How are you trying to run the batch file? If I open a command prompt (Start | Run | cmd) and type in the following command, I get long file names (the first part is path to my SS.EXE and then the rest is the command options that you provided in your first post). "C:\Program Files\Microsoft Visual Studio\VSS\win32\ss" get $/ -R -I- -NL Thanks, Jim.
Jim, thanks for your comments, Unfortunately vss is not local to my machine I am getting the files over a network. I have been calling the ss.exe on the networked machine where the db resides. \\machine\folder\ss.exe get $/project -R -I- -NL When I point to the local ss.exe as you suggested I have no files to get, presumably because I have no files in a local vss db. Do I need to do somemore reading about setting up vss (pointing the local vss at a network repository), or am I heading down the right lines in calling the command line on the machine where the vss db resides. If so is it a network file copy issue rather than a vss issue? Thanks again, Rob
-
Jim, thanks for your comments, Unfortunately vss is not local to my machine I am getting the files over a network. I have been calling the ss.exe on the networked machine where the db resides. \\machine\folder\ss.exe get $/project -R -I- -NL When I point to the local ss.exe as you suggested I have no files to get, presumably because I have no files in a local vss db. Do I need to do somemore reading about setting up vss (pointing the local vss at a network repository), or am I heading down the right lines in calling the command line on the machine where the vss db resides. If so is it a network file copy issue rather than a vss issue? Thanks again, Rob
Rob, When I open a command prompt (again, using Start | Run | cmd) and then try to access a remote VSS database using the command structure that you include above, I get the full/long file names. In case it matters, the server on which the remote VSS database is Windows 2000 and (as far as I know) there is nothing special that has been changed on that server. How are you opening the command prompt and/or executing the batch file? You may want to try to take the line out of the batch file and run it at the command prompt. This way you can see if there is any difference. Thanks, Jim.