bibi92
asked on
Missing expression after ','
Hello
When I execute :
param
(
[string]$A = "",
[string]$I = "",
[string]$S = "",
[string]$g = "",
[string]$T = "",
[string]$f = "",
[string]$u = "",
[string]$up = "",
[string]$c = "",
[string]$cp = "",
[string]$v = "",
[string]$ip = "",
[string]$r = "",
[switch]$Help ,
[switch]$Serbose,
[switch]$debug
)
$net = new-object -ComObject WScript.Network
$net.MapNetworkDrive("z:", "\\server", $false,`"$u`", `"$up`")
The following error is returned :
Missing expression after ','.
At C:\install_bin_1-0.ps1:45 char:75
+ $net.MapNetworkDrive("z:", "\\server", $false, <<<< `"$u`", `"$up`")
+ CategoryInfo : ParserError: (,:String) [], ParseException
+ FullyQualifiedErrorId : MissingExpressionAfterToke n
Thanks
bibi
When I execute :
param
(
[string]$A = "",
[string]$I = "",
[string]$S = "",
[string]$g = "",
[string]$T = "",
[string]$f = "",
[string]$u = "",
[string]$up = "",
[string]$c = "",
[string]$cp = "",
[string]$v = "",
[string]$ip = "",
[string]$r = "",
[switch]$Help ,
[switch]$Serbose,
[switch]$debug
)
$net = new-object -ComObject WScript.Network
$net.MapNetworkDrive("z:",
The following error is returned :
Missing expression after ','.
At C:\install_bin_1-0.ps1:45 char:75
+ $net.MapNetworkDrive("z:",
+ CategoryInfo : ParserError: (,:String) [], ParseException
+ FullyQualifiedErrorId : MissingExpressionAfterToke
Thanks
bibi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.