Tagged Questions
1
vote
2answers
38 views
Batch script calling a powershell function
Is there a way for a batch file to call a powershell function? I've tried
powershell ". .\tes.ps1; Test-Me -Param1 'Hello world' -Param2 12345"
And it works, the function gets called, but so does ...
-2
votes
1answer
27 views
Update file contents in JAR file [on hold]
I am looking for a way to update a text file contained in a JAR file. I am working on windows environment so I think a bat/power shell script could do it.
I know that I can use a compression utility ...
0
votes
1answer
32 views
How to run batch file using powershell
I am trying to run one batch file using powershell. It required property file to start the APP as without it is failing.
Below are the commands which i have tried but dint get success.
cmd.exe /c ' ...
-3
votes
1answer
33 views
powershell batch file to show touch input panel if hidden otherwise hide it if visible on windows 8 pro
I need a batch file that when I run would show touch input panel (virtual keyboard) when hidden , otherwise if already visible then hide it. Here is the path to the touch input panel
C:\Program ...
1
vote
3answers
40 views
Modifying/Combining Text Files with Scripts
I am running a program on my machine that is triggered by running a .bat file. Right now, I am manually modifying the .bat to point to specific files/folders before running the script, which only ...
0
votes
3answers
59 views
Serialize execution of symstore via Powershell or BATCH
We are working to integrate a step into our continuous integration (CI) server (CruiseControl.NET). We want to register the debug symbols *.pdb generated from our build process into a Microsoft ...
0
votes
2answers
44 views
How to start .bat files which i just collected out of a folder
When i find .bat files with get-childitems from a specific folder like this :
$bats = Get-ChildItem "C:\Projects\PSScripts\batfiles"
foreach ($bat in $bats)
{
start-process
}
how do i make ...
0
votes
2answers
45 views
how to find all .bat files and execute them one by one?
I am still very new to PowerShell and need some help.
I have some .bat files in a folder called: c:\scripts\run\
and I want to run them one by one but I don't know how many I have, it changes from ...
1
vote
1answer
45 views
Error while running a powershell script using Psexec
I am running the below batch file to connect the remote machine & run a powershell script on the remote machine using psexec.
Running batch file on local machine (myscript.bat)
Running Command: ...
2
votes
5answers
114 views
List files in one folder structure which aren't in another
Just got a new phone and have temporarily copied the old ones files onto my PC C:\OldPhone\
On my PC are all my photos, in various folders below D:\Photos.
I want some code to list all the .jpg ...
0
votes
1answer
32 views
Check for particular DotNet version & install if not found in remote machine
I am creating a batch file to check for a particular dotnet version & install if not found on a remote machine.
For executing commands on remote machine currently I am using psexec.exe.
Using ...
0
votes
3answers
65 views
Executing same commands with multiple arguments at same time in Windows
i have 3 commands to run in Windows terminal, but all of them should start in parallel roughly at the same time. I created .bat file, put my 3 commands in there and had run that bat file. But the ...
1
vote
1answer
28 views
Keep shell focus when opening another program
I have a simple .bat file that I use to flush the contents of a file, open said file in notepad++ and then start mysql with logging to this file. My question is, is there a way to maintain focus on my ...
1
vote
1answer
143 views
Powershell - Query remote registry key value and generate text file IF value equals 1
first time posting. Thoroughly enjoy the site and all of the talent that stops in to help out.
I have slopped together bits of Powershell to remote query a list of machines, stored in a .csv file, ...
7
votes
1answer
3k views
how to suppress output in R
I would like to suppress output in R when I run my r script from the command prompt.
I tried numerous options including "--slave" and "--vanilla". Those options lessens the amount of text outputted. ...