The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
17 views

Detecting FTP timeout in Windows batch script

I have a SQL Server Agent job scheduled to run daily. The first of two steps calls an SSIS package, which writes the results of a query to a file. The second step executes a batch file which renames ...
2
votes
4answers
1k views

Windows shell scripts in C#

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 ...
0
votes
3answers
40 views

Determining OS version via Scripting

I found this script on another site but I can not get it to work and I don't know batch scripting that well Set objWshShell = WScript.CreateObject("WScript.Shell") strOSVersion = ...
1
vote
8answers
10k views

PSEXEC, access denied errors

While I'm using PSEXEC.exe getting 'Access denied' error for remote systems. Any idea about how to solve this?
0
votes
3answers
250 views

How to stop the limit the search of a DIR /S after it found something

I'm trying to look for a file in a drive in BATCH and so I used the following command: DIR c:\directory* /s/b | FIND "filename.txt" the problem is once I find the file, it still searches... So I was ...
0
votes
1answer
47 views

windows check remote file

I need to check a file status (existing? or last modified date) on multiple remote windows servers (in LAN). The remote pcs need a user name and password. It's best to be some sort of script. I am ...
3
votes
2answers
361 views

Why WScript.StdOut.Write method behaves differently in VBS vs. JScript?

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 ) ...
0
votes
2answers
4k views

How to stop a vb script running in windows

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 ' ...
0
votes
0answers
18 views

Creating Script in Windows Scheduler to scan documents in folder

My manager has given me a task to create a script that can be scheduled via windows scheduler to scan all documents in a specified folder and output a text file. Can anyone point me in the right ...
0
votes
1answer
17 views

Conditional loading of Chrome based on working internet (WLAN) connection

I have a thin client running stand alone on Windows XP embedded which will be used as a information screen. Information shall be pulled from the internet (through a website) when a WLAN-connection has ...
0
votes
2answers
63 views

VBScript Class Private array of classes constantly Empty after assignment

I am having an issue where I have a class with a property that is an array. A Load method resizes the array to the number of entries in a file, creates a new Entry class for that file entry, and ...
0
votes
1answer
78 views

Appending a new line character to a variable in a for loop Windows batch

I am looping through the results of a command and appending them all to one variable (!results!) within that loop. At the end of the loop, if the results are not empty then I print them. I would like ...
1
vote
2answers
334 views

Batch file printing out commands with @echo off

I am searching for certain XML files and then performing a command on them (mvn) which writes an output to a tree.out file. If this file is empty then I know there was no output (from mvn), so I don't ...
1
vote
0answers
688 views

IWshShortcut Target Resolution in Windows 7

I've got some code to read shortcuts using the Windows Script Host, but it appears to have a problem in Windows 7. When reading shortcuts, if there is an environment variable in the target path, it ...
2
votes
4answers
9k views

.bat If Then Statement

I need help with writing a batch script for if file newfile.txt exists then del "InDesignData.txt" ren "newfile.txt" "InDesignData.txt" Thanks in advance, Joe

1 2 3 4 5 7
15 30 50 per page