获取随机字符串中的有效文件路径 [英] Get The Valid File Path in Random String

查看:105
本文介绍了获取随机字符串中的有效文件路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i在visual c ++ Win32中有问题。



如何获得随机字符串的完整有效文件路径值如下面带有不同开关的字符串???

如何从包含不同开关的字符串中删除字符的其他部分并获取有效的文件路径???



C:\Program Files \Realtek \ Audio \ HDA \ RAVCpl64.exe -s

C:\Program Files \ Windows Sidebar \ sidebar。 exe / autoRun

C:\Program Files \ Windows Sidebar \ sidebar.exe -startup



谢谢...

Hi
i have problems in visual c++ Win32.

How can i get full valid file path of random string values such as below strings with different switches ???
How can i delete other part of characters from string included different switches and get valid file path ???

C:\Program Files\Realtek\Audio\HDA\RAVCpl64.exe -s
C:\Program Files\Windows Sidebar\sidebar.exe /autoRun
C:\Program Files\Windows Sidebar\sidebar.exe -startup

Thank You...

推荐答案

尝试 splitpath [ ^ ]功能。


这篇关于获取随机字符串中的有效文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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