ARGV无法在Windows 2008上运行? [英] ARGV doesn't work on Windows 2008?

查看:58
本文介绍了ARGV无法在Windows 2008上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将其从Win 2003服务器移动到Win 2008时,脚本停止工作。经过一些故障排除后,它似乎没有抓取命令行参数。


所以我做了一个打印$ ARGV并退出文件的开头,我得到了这个:

展开 | 选择 | Wrap | 行号

解决方案

ARGV并退出文件的开头,我得到了这个:

展开 | 选择 | Wrap | 行号



ARGV是一个标量变量。你想要的是@ARGV这是一个数组。


我想发布你的脚本以及你如何执行它,我们应该能够找到问题

A script stopped working when I moved it from Win 2003 server to Win 2008. After some troubleshooting it seems that it was not grabbing the command line parameters.

So I did a print $ARGV and exit at the beginning of the file and I get this:

Expand|Select|Wrap|Line Numbers

解决方案

ARGV and exit at the beginning of the file and I get this:

Expand|Select|Wrap|Line Numbers



ARGV is a scalar variable. What you''re wanting is @ARGV which is an array.

I you want to post your script and how you''re executing it, we should be able to find the problem.


这篇关于ARGV无法在Windows 2008上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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