目录转换 [英] Conversion of directories

查看:55
本文介绍了目录转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我正在使用CreateFile()获得必需的文件句柄.我以"\ device \ harddiskVolumeRD \ xyz.txt"的形式提供了一个路径目录.除非我弄错了,否则CreateFile()不接受这种形式.是否有一个简单的win函数来转换 指向以下格式的路径:"R:\ xyz.txt" ?

I'm using CreateFile() to get a required file handle. I am supplied with a path directory in the form of "\device\harddiskVolumeRD\xyz.txt". Unless I'm mistaken, this form is not accepted by CreateFile(). Is there a simple win function to convert the aforementioned path to the following format: "R:\xyz.txt" ?

推荐答案

如果您在谈论UNC路径,则CreateFile支持它们.
If you're talking about UNC paths, then CreateFile supports them.


这篇关于目录转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆