Questions tagged [new-item]
39 questions
0
votes
1 answer
How to copy files and folders with an already existing folder?
I have created a script to copy the folder/sub folders/files from a specific location to a list of servers that I specified on a notepad.
It checks that if the folder has not been created, it will create it and copy over the files, but if the folder…

wazzie
- 23
- 1
- 8
0
votes
0 answers
BindingNavigator: AddItem button saves the form, but does not clear the form for the new Record
I have a Visual Basic project that uses a form to save information to a XML database. The form controls are bound to a DataTableBindingSource and all is fine except the "AddNewItem" button on the BindingNavigator seems to be saving the form. This is…

Wishful Thinking
- 13
- 4
0
votes
1 answer
Remote Desktop Services: CAP or RAP through PowerShell
I am trying to configure a new RDS gateway server through Powershell (for automatic setup after EC2 creation). The issue I'm running into right now is setting up a default or otherwise CAP and RAP. Everything else seems to work just fine, and if I…

Russell Anthony
- 1
- 1
- 5
0
votes
1 answer
How to create csv file in powershell with dynamic name?
I am trying to write a PowerShell function that will basically create a file in the folder with a name that was passed to that function as $fileName argument.
Here is the function:
$mainFolder = "C:\testFolder\"
function checkIfExist($path, $fName)…

Ademir Gotov
- 179
- 1
- 14
0
votes
2 answers
New-Item PowerShell directory tree with multiple directories
I know how to use New-Item in PowerShell so I can create some directories.
But can I in anyway make this code shorter?
New-Item 'c:\drivers\Windows\Network\32bit PowerShell' -Type Directory
New-Item 'c:\drivers\Windows\Network\64bit PowerShell'…

Thomas BP
- 1,187
- 3
- 26
- 62
0
votes
1 answer
dijit Tree JsonRest, new Items shows on all Nodes
i want to use a dojo/data/JsonRest to display a Tree.
Load from Server works fine, but if i add a new Item, the new Item is displayed on each openend node. The request is made to the server an the response looks good for me.
On the Serverside i use…

Dirk Neupert
- 11
- 3
0
votes
2 answers
Error calling New-Item in a loop from CSV data
Before we get to the code, I have a CSV with a list of PC's and only 1 column. The goal is to use the info from Column A, labeled "Computers" and get all services for these machines and output them into folders created based on the info from…
user6015403
-2
votes
2 answers
Having trouble using `New-Item` on Windows 10 via Perl
This is a sample of text including symbols that I am trying to overwrite a file with:
Home http://domain.tld
IP|http://domain.tld/path/1
Navbar, Top|http://domain.tld/
Tips/Tricks|#some text
Accordion 2|*more text
Text|=More…

bislinks
- 84
- 10
-3
votes
2 answers
"new-item" isn't recognized as command in PowerShell
new-item -type file NAME/init.py
I have folder "NAME". The command "new-item" doesn't work. What should I do?

Nikita11
- 1