CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Aug 2019
    Posts
    56

    [RESOLVED] How to turn backslash to forward slash in windows environmental variable?

    I necessarily need to change backslash to forward slash in windows environmental variable. Do you have any suggestions how can I get %programdata% path with forward slash after systemDrive?

    Code:
    TCHAR path[_MAX_PATH];
        _tcscpy(path, programdata);
        _tcscat(path, _T("\\myfile.txt"));
    Last edited by prako2; August 31st, 2019 at 04:39 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured