windows-scripting Questions
20
While I'm using PSEXEC.exe getting 'Access denied' error for remote systems.
Any idea about how to solve this?
Quatrain asked 6/5, 2009 at 7:30
3
I have two small programs in VBS and JScript:
VBScript.vbs:
For i=0 To 255
WScript.StdOut.Write Chr(i)
Next
JScript.js:
for ( var i=0; i <= 255; ++i )
WScript.StdOut.Write(String.fromChar...
Dora asked 16/1, 2013 at 0:24
5
Solved
Set wshShell = WScript.CreateObject ("WSCript.shell")
wshshell.run "runas ..."
How do I get the results and display in a MsgBox
Drum asked 19/5, 2011 at 15:15
4
Solved
I'm trying to write a build script to checkout code using Powershell. I need to be able to replace any modifications which were made to the working copy with the appropriate changes from the SVN re...
Ever asked 31/1, 2012 at 16:2
5
Solved
My question is very similar to this one, except I'm trying to capture the return code of a ScriptBlock using Invoke-Command (so I can't use the -FilePath option). Here's my code:
Invoke-Command -c...
Chadd asked 18/12, 2011 at 1:18
9
Solved
I want to write a batch file that will do following things in given order:
Open cmd
Run cmd command cd c:\Program files\IIS Express
Run cmd command iisexpress /path:"C:\FormsAdmin.Site" /port:808...
Fatherhood asked 24/5, 2013 at 5:1
4
I need to verify if a string is a valid IPv4 or IPv6 address in a Batch script, but apparently Batch doesn't have an easy way to parse an IP address.
How can I do this in Batch without using extern...
Me asked 13/2, 2021 at 12:13
1
Solved
I am trying to write a powershell script that tests if a MySQL login is successful by using $? to check if an error occurs.
I also want to suppress all output - successful or not successful - fro...
Ornis asked 10/4, 2019 at 23:21
1
As the title says, if I try to add -persist to the cmdlt, it returns an error:
New-PSDrive : The network resource type is not correct
At line:1 char:1
+ New-PSDrive -Name P -Root <redacted> ...
Woof asked 12/11, 2018 at 17:50
3
Loading the TypeScript compiler into ClearScript, "WScript is undefined", impossible task?
I tried using ClearScript to load the TypeScript compiler in order to compile some basic TypeScript code.
Unfortunately, when executing the TypeScript compiler source I get this error:
'WScript...
Nolannolana asked 26/9, 2013 at 8:48
1
I'm writing PowerShell modules that execute commands or scripts over SSH on remote Windows machines, and I'm looking for a way to transmit a password (or other sensitive information) over the conne...
Menswear asked 25/1, 2018 at 0:58
2
Solved
Imagine that we have a program or script that can take a password (or other sensitive information) argument:
> program.exe /password:secret
For Linux, best practice generally recommends agai...
Labannah asked 31/10, 2017 at 17:53
5
Solved
I'm using windows 7
I wrote a script to check whether My Laptop is running in Battery or AC current.
I googled it and succedded in that.
dim a
a=1
Do While a=1
If IsLaptop( "." ) Then
' WScript...
Serration asked 5/11, 2011 at 2:55
4
Solved
I am trying to use setlocal enabledelayedexpansion and cd together in a batch script, which seems to not persist changes back to shell.
The reason I need setlocal enabledelayedexpansion is that I ...
Estrin asked 7/10, 2014 at 22:13
2
Solved
I have the following problem, I need to create a script that compares if the directory exists and if it does not exist, create it. In the linux shell, I use the parameter -F to check if the directo...
Polymer asked 28/4, 2017 at 13:28
1
Solved
I am trying to run a script to startup some services after windows reboot.
I have tried one method: copying shortcuts of batch script in shell:startup folder. which eventually will start the scri...
Rainey asked 16/3, 2017 at 14:49
3
Whilst developing a Windows procedure using JScript, it seems that some string methods fail to work. In this example using trim, line 3 generates the runtime error:
"Object doesn't support this ...
Marker asked 19/7, 2015 at 23:11
4
Solved
I have not found a way to get the error code, if returned, of rmdir. It seems like the MS-DOS internal commands do not return an error code. Can someone confirm that?
How does a script that uses ...
Retrace asked 28/6, 2011 at 0:8
3
I was pretty sure that some months ago I read about the possibility to launch Windows scripts not only the usual .bat, but also .js, .vbs and .cs !
I was willing to try windows scripts in C# .cs f...
Immobile asked 27/6, 2011 at 9:21
2
Solved
Here's my situation:
I have a BAT file that takes a long time to run (1minute to 70 minutes)
I schedule it with Windows scheduler to run every 10 minutes
If it schedules again while it is still r...
Donica asked 25/7, 2012 at 22:13
2
Solved
How to open a prompt dialog box in WSH usig JScript??
The only pop-up dialog I've found in the doc is the WshShell.Popup() method. But I need a way to request the user to enter a string, like the ...
Readus asked 10/2, 2009 at 12:41
3
Solved
First, a caveat. The main script is not run in a webpage. I will be running the .js file in Windows using Windows Script Host.
The problem:
I would like to create a javascript "library" containing...
Lazurite asked 29/5, 2009 at 21:28
1
Solved
I'm trying to iterate through folders with images to create thumbnails using ImageMagic, and rename thumbnail files with small_ prefix.
when I execute this in single folder, it works great:
FOR %...
Fidelafidelas asked 21/3, 2011 at 20:2
2
Solved
I am about to write a PowerShell Script for Windows administrators, in order to help them in certain tasks related to deployment of a web application.
Is there any reason I should favor or exclude...
Likely asked 24/2, 2011 at 10:13
5
Solved
I was wondering what place scripting has in today's world of IDEs and GUIs.
I'm new to programming and am wondering at what point I should, if at all, open up the PowerShell terminal for a particu...
Fossilize asked 18/6, 2010 at 21:2
1 Next >
© 2022 - 2025 — McMap. All rights reserved.