Backstroke, backstroke, backstroke

Asked

Viewed 65 times

1

hello. I have been trying to find out if I can reverse a path?

How can I reverse a path and then go on as normal? for example I need to revert a path to this string ( LPCWSTR path = ) so I need to go back a few folders and then follow the normal path

example

normal

LPCWSTR path = (L"C:\\pasta1\\texto.txt");

Inverse Direction

LPCWSTR path = (L"C://Pasta2// \\aqui continua normal \\pasta1\\texto.txt");

in the pasture 2 I need to go back and the pasture pastir 1 I need to continue normally.

how do I do that?

Thank you

1 answer

3


To return a directory ../

../../ back two directories.

  • Thanks. It works. and if I want to walk more directories follows the same right?

  • that, / advance directory; same directory ./; backward ../

  • Who knew it was that easy. Thanks for the quick response.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.