Discussion:
How to get latest version through Command line Argument
(too old to reply)
daya
2006-04-07 05:38:43 UTC
Permalink
Hi All,

I've tried a lot,but still i am not able to ...Bcs after
executing the command ----> " ss Get -yUserName,Password $/Root/*.*
-R " Command it will display ------->"No item found under $/ "
Also if i execute " ss Project " comand it will show ------ >"
Current Project is $/ " So pls help how can i enter into "$\Root\"....

ThanQ


Regards
daya
***@tataelxsi.co.in
Alin Constantin [MSFT]
2006-04-07 09:16:42 UTC
Permalink
Hi Daya,

You can change the current project using "ss.exe cp $/Root" command.
You can also get recursively a project without changing the currentproject
to it, like this:
"ss.exe get -R -I-Y $/Root"
You may also need to specify -GF and -GL flags, depending where you want
your files to end up.
For more information, see
http://msdn2.microsoft.com/en-us/library/203a56wa(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/661w6e3d.aspx
--
Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by daya
Hi All,
I've tried a lot,but still i am not able to ...Bcs after
executing the command ----> " ss Get -yUserName,Password $/Root/*.*
-R " Command it will display ------->"No item found under $/ "
Also if i execute " ss Project " comand it will show ------ >"
Current Project is $/ " So pls help how can i enter into "$\Root\"....
ThanQ
Regards
daya
daya
2006-04-07 09:34:13 UTC
Permalink
Hi Alin,
Actually my VSS in remote machine so i need to get the
latest version form there.....For that through SSEXP.exe i can able to
reach but for getting latest version i have to use ss.exe.....How come
the "ss Get " command will invoke without SSEXP.exe for getting latest
version ......Pls give a hint

********************************
i've tried the sameU have given)it came $/Root does not exist(bcs it
may checking in local machine)....
Alin Constantin [MSFT]
2006-04-07 09:57:55 UTC
Permalink
I'm not sure I understand your question.

Does the $/Root folder exist in the database you're trying to get the file
from?
(use "ss.exe Dir $/" command to verify this).
If not, and you expect it to be, perhaps ss.exe is connecting to a different
database?
Have you set SSDIR environment variable to point to the remote database you
want to get the files from?
Without the variable set (and if you're running VSS6), ss.exe will try to
get the files from the default database, which is in ..\data from where
ss.exe is.
--
Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by daya
Hi Alin,
Actually my VSS in remote machine so i need to get the
latest version form there.....For that through SSEXP.exe i can able to
reach but for getting latest version i have to use ss.exe.....How come
the "ss Get " command will invoke without SSEXP.exe for getting latest
version ......Pls give a hint
********************************
i've tried the sameU have given)it came $/Root does not exist(bcs it
may checking in local machine)....
daya
2006-04-07 11:13:49 UTC
Permalink
Ya i got it ....
But it is copying to "C:\Program Files\Microsoft Visual
Studio\Common\VSS\win32\ " this location...
Also i set the working folder as " ss Workfold $/ROOT C:\ROOT ".....
Alin Constantin [MSFT]
2006-04-08 02:57:39 UTC
Permalink
You should use the -GLC:\Root flag to get the files in a different folder
than where you're launching ss.exe from.
You may also be able to use -GF, depending on how your working folders are
set.
--
Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by daya
Ya i got it ....
But it is copying to "C:\Program Files\Microsoft Visual
Studio\Common\VSS\win32\ " this location...
Also i set the working folder as " ss Workfold $/ROOT C:\ROOT ".....
daya
2006-04-10 06:21:41 UTC
Permalink
Thats fine....But it is asking i/p Yes/No in order to create each and
every Sub-directory.....i have tried "-I-" option to ignore the input
but by default it is taking "No" option Also i user " -R " option too
....So how to avoid it.
My command is like below....
ss Get $/LSC/* -R -I- -GF
ss Get $/LSC/* -R -I -GF



Regards
daya
daya
2006-04-10 07:20:41 UTC
Permalink
Yes, ThanQ Alin

I got it previous one too...... by using
" ss Get $/LSC/ -R -GLC:\Lsc1.1.1_NewUpdated -I-" Command


Onceagain Thanks a lot.....
Alin Constantin [MSFT]
2006-04-11 02:15:14 UTC
Permalink
The -I- is equivalent to -I-N (answer No to all questions) in this case.
You can use -I-Y to answer yes to all questions.
http://msdn2.microsoft.com/en-us/library/028cya07(VS.80).aspx
--
Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by daya
Thats fine....But it is asking i/p Yes/No in order to create each and
every Sub-directory.....i have tried "-I-" option to ignore the input
but by default it is taking "No" option Also i user " -R " option too
....So how to avoid it.
My command is like below....
ss Get $/LSC/* -R -I- -GF
ss Get $/LSC/* -R -I -GF
Regards
daya
daya
2006-04-11 13:55:54 UTC
Permalink
Then how to get a latest updated file only,(whether any option is there
to check latest updated file)
Alin Constantin [MSFT]
2006-04-12 05:32:09 UTC
Permalink
Specify the file name, not the project "ss.exe get
$/Project/File.txt -GLC:\Destination\File.txt"
If there is a newer version available it will replace hte local version.
--
Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by daya
Then how to get a latest updated file only,(whether any option is there
to check latest updated file)
daya
2006-04-12 08:34:16 UTC
Permalink
i don't want to specify File.txt, insted by default only it as to find
all those which are recently updated & need to list all......
Alin Constantin [MSFT]
2006-04-13 02:42:27 UTC
Permalink
There is no option to check / list the files that have newer versions before
retrieving the files.
You can do an "ss get" and only the files that have newer versions will ge
retrieved.
--
Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by daya
i don't want to specify File.txt, insted by default only it as to find
all those which are recently updated & need to list all......
daya
2006-04-17 09:52:06 UTC
Permalink
Ok,

I listed all the updated files in a text file, Now it is
possible, by reading that file it as to get the specifeid one

Continue reading on narkive:
Loading...