Tagged Questions
0
votes
0answers
37 views
Convert multiples .txt and into a single file?
I have a lot of folders.
In each folder there are aproximally between 1 and 20 .txt-files
Each .txt file (unique name) contain a title (line1) that is followed by a HTML-formatted text (line2)
...
0
votes
2answers
54 views
Passing argument from batch script to PowerShell script fails
I am trying to find out a solution by passing the REPLACE command through the batch file as the "ReplaceTagsOnConfigFiles.ps1" will work when the file is executed with REPLACE option or otherwise, it ...
0
votes
2answers
30 views
Powershell module and invoking files
I have a script based powershell module (.psm1) and I have it imported into my main script. This module however needs to call a batch file that is located inside its same directory but apparently it ...
2
votes
1answer
88 views
powershell in batch file
I'm trying to create a batch script with powershell included, but it does not work, as below
@echo off
rename D:\temp\*.csv temp.csv
powershell.exe -Command "& {Import-Csv D:\temp\temp.csv | ...
0
votes
1answer
41 views
Powershell/Batch network mapped drive
I want a powershell/batch script that map a drive on a free letter. Or test letters then map on a free one.
I'm sure there is something easier than this.
$tab = @()
$tab = @('A:', 'B:', 'C:', 'D:', ...
0
votes
1answer
30 views
WAMP + PHP + PowerShell 2.0 + bat + Outlook + HRESULT: 0x80004004 (E_ABORT)
Holo
I have the nex problem trying to make automatic mailer from website for failure system.
I have WAMP and my code is on php that do many thing, the main porpouse is that this php file crete *.ps1 ...
0
votes
2answers
41 views
Reconfigure windows after installation
I am looking to reconfigure Windows 8 after it has already been installed. Basically I have a base image that I will apply. After that is complete, I want to be able to run either a script of an exe ...
0
votes
2answers
46 views
Move folder content from one directory to another
I have a tinkerer that would like to move the contents of several users local files to a new directory on the server.
Move from c:\users\%username%\appdata\roaming\filezilla
to ...
0
votes
4answers
57 views
copy text files in different location and combine them to one text file
I need to concatenate text files in different locations to one textfile, preferably in batch or Powershell. How would this work?
Example:
copy
\\server1\f\tes1.txt
\\server2\f\test2.txt
...
-1
votes
1answer
68 views
Scripting not understood even after googling [closed]
I work for ABC company and we use logmein extensively. I like to create some scripts but the word script and the .files that are associated are so general that it is difficult to find a starting ...
0
votes
0answers
40 views
Batch script with powershell commands not running as intended
I'm having a little problem with a script (thanks for the script, sir Jubjub Bandersnatch) that is not running as intended. The script is intended to define an execution policy for the OS and, after ...
0
votes
1answer
45 views
Trying to automate the execution of 2 scripts which install IIS 7.0
I aim to create my Powershell script to automatize the installation of IIS and all the features we needed and even found a Batch file to enable the execution of powershell scripts without having to go ...
1
vote
1answer
61 views
Store powershell output in a variable in CMD
In a batchfile, how do I store the output of a powershell command in a variable
This isn't working
set yest=powershell get-date((get-date).addDays(-1)) -uformat "%Y%m%d"
powershell ...
0
votes
0answers
29 views
Download .collabdiff file from Code Collaborator
I want to be able to download patches associated with change lists in Code Collaborator using the Windows command line. These are the files you get in the web GUI if you click on External Diff. They ...
0
votes
2answers
37 views
Replacing a string in all config files across machines with a script
I have the below task and I am wondering what would be the best and quick way to do this. I am thinking scripting rather than a C# app but struggling with scripting in DOS. I wanted to use powershell ...