tanganping 发表于 2014-3-27 17:44:56

请问powercli代码中【′】这个字符的作用!

我在书上看到下面这种的powercli代码,请问下【′】这个字符的作用!这样的代码应该怎么执行!
New-VM -Name REL5_01 ′
   -DiskMB 10240 ′
   -DiskStorageFormat thin
   -MemoryMB 1024 ′
   -GuestId rhel5Guest ′
   -NetworkName vSwitch0_VLAN22 ′
   -CD |
   Get-CDDrive |
      Set-CDDrive -IsoPath &amprime; /REHL5.2_x86.iso&amprime; ′
         -StartConnectedtrue ′
         -ConfirmFalse

tsunami_liao 发表于 2014-3-27 17:45:28

全乱套了,没法看你贴出的代码,请截图吧。

tsunami_liao 发表于 2014-3-27 17:47:12

看这里:
http://communities.vmware.com/thread/319602
Epic Fail in eBook Format - VMware vSphere PowerCLI Reference
If you're thinking of picking up this book in eBook format (Kobo or EPUB from Wiley) then don't, its a mess..

    Using a Kobo reader converts it to a single proportional font. This makes the source listings and output lists a mess where nothing aligns right
    All of the double quote, single quote and backhash characters are replaced with some variation of the text "″". So instead of

New-RegKey = "HKLM:Software\ODBC\ODBC.INI\ODBC Data Sources"`
$ODBCName "SQL Server Native Client 10.0"
the eBook has
New-RegKey ″HKLM:SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources″′
$ODBCName ″SQL Server Native Client 10.0″$VCMedia - ″C:\Temp\InstallMedia″
意思是说如果来自与Kobo或者EPUB格式的电子书中,双引号和单引号被替换了,造成了混乱。
&Prime 替代的 双引号
&prime 替代的 单引号

tanganping 发表于 2014-3-27 17:47:57


真是十分感谢!
页: [1]
查看完整版本: 请问powercli代码中【′】这个字符的作用!