vbs 结合常量 [英] vbs combining consts

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

问题描述

这是一个快速(而且可能很愚蠢)的问题,但如果我有两个 consts 字符串,我该如何从前一个 const 构建下一个 const,即

This is a quick (and probably stupid) question but if I have two consts string how can I build the next const from the previous const i.e.

Const PATH_SRC = "some path\"
Const PATH_SRC_FILES = PATH_SRC & "files\"

我知道您可能会说常量是常量,但正在寻找快速解决方案.这是在 vbs 脚本中执行的.

I know you may say a const is a const but looking for a quick solution. This is being performed in a vbs script.

谢谢

推荐答案

如果我在 VBS 时代没有记错的话;你不能在 VBS 中做到这一点.常量只能设置为文字.

If I recall correctly from my VBS days; you can't do that in VBS. A constant can only be set to a literal.

这篇关于vbs 结合常量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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