在路径字符串中添加char [英] Adding a char inside path string

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

问题描述




我从DB获取路径字符串,如:


\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \FolderName2 \ example.ex e


我正在编写一个脚本,可以让我访问该exe文件。

但问题是字符串是不是通用路径,我需要添加C $。

任何想法如何在该字符串中添加$ char。

ServerName不是固定长度。它可以是任何字符长度。


谢谢,

hj

Hi,

I get path strings from a DB like:

\\serverName\C:\FolderName1\FolderName2\example.ex e

I am writing a script that can give me access to that exe file.
But problem is that string is not universal path, I need to add C$.
Any idea how I can add $ char in that string.
ServerName is not fixed length. It could be any chars length.

Thank you,
hj

推荐答案



我知道如何在该字符串中添加
.
Any idea how I can add


char。

ServerName不是固定长度。它可以是任何字符长度。


谢谢,

hj

char in that string.
ServerName is not fixed length. It could be any chars length.

Thank you,
hj


"亚太区首席技术官Matt"写道:
"Hitesh" wrote:

我从DB获取路径字符串,如:


\\\\\\\\\\\\\\\\\\\\ FolderName1 \FolderName2 \ example.ex e


我正在编写一个脚本,可以让我访问该exe文件。

但是问题是那个字符串不是通用路径,我需要添加C
I get path strings from a DB like:

\\serverName\C:\FolderName1\FolderName2\example.ex e

I am writing a script that can give me access to that exe file.
But problem is that string is not universal path, I need to add C


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

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