Search found 3 matches
- 28 Mar 2018 03:55
- Forum: DOS Batch Forum
- Topic: Last directory name
- Replies: 5
- Views: 5251
Re: Last directory name
Great thanks for your answers, it's really helpfull!
- 24 Mar 2018 12:41
- Forum: DOS Batch Forum
- Topic: Last directory name
- Replies: 5
- Views: 5251
Re: Last directory name
Hello, thanks to Compo and Ed Dyreen, both solutions are working fine!!! I put them both on the same message. for %%? in ( "c:\users\ssdmax\Google Drive\Exercices\temp" ) do set repert=%%~n? echo %repert% Set "repertt=%CD:\="&Set "repertt=%" echo %repertt% I've try to understand them, in order to mo...
- 23 Mar 2018 16:55
- Forum: DOS Batch Forum
- Topic: Last directory name
- Replies: 5
- Views: 5251
Last directory name
Hello, i would like to get the name of the last repository. (Sorry for my language, i try to improve that too:) ). My current directory is: c:\users\ssdmax\Google Drive\Exercices\temp i try to get "temp" as a string in a variable. For that purpoose, a make a batch file: set cd1=%cd% cd .. set cd2=%c...