Quantcast
Channel: folder creation in BMC through powershell/window creates file not folder - Stack Overflow
Viewing all articles
Browse latest Browse all 2

folder creation in BMC through powershell/window creates file not folder

$
0
0

I am using Powershell and BMC for automation, I have created a Powershell script to create a folder:

$directoryname= "D:\sysdba" 
$DoesFolderExist = Test-Path $directoryname 
$null = if (!$DoesFolderExist){MKDIR "$directoryname"}

$directoryname= "D:\temp" 
$DoesFolderExist = Test-Path $directoryname 
$null = if (!$DoesFolderExist){MKDIR "$directoryname"}

I am using below command to create folder on host server:

<commands>
  <command>\\Path\SPUpgrade\Create_Folder.ps1</command>
</commands>

But it is creating a file instead of folder:

enter image description here

Any idea why? I am confused as why not creating folder and why file


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images