E
E
ElizTriad2020-09-29 09:39:49
cmd/bat
ElizTriad, 2020-09-29 09:39:49

How to get folder name from folder path?

There are paths to such folders

%USERPROFILE%\Documents\My Games\Wasteland2DC
%USERPROFILE%\appdata\Roaming\Factorio
%USERPROFILE%\Documents\My Games\Skyrim VR

It is necessary to divide the full path to the folder into 2 parts and assign them to the parameters
set GamePath=%USERPROFILE%\Documents\My Games
set GameFolderName=Wasteland2DC

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wisgest, 2020-09-29
@wisgest

Reading

for /?
call /?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question