0
votes
1answer
47 views

Cannot unzip with zip command line

I am having difficult unpacking a zip to a specific directory. I am trying to get all contents of subdirectory of the zipped file and not the parent directory. This is parent directory within zip ...
4
votes
3answers
528 views

Delete all Files from Folder and Sub Folders

I'm wanting to remove all files from a folder structure so I'm left with an empty folder structure. Can this be achieved in either Batch or VBS scripting? I have tried a very basic batch command but ...
1
vote
1answer
27 views

Creating a script to open and save a file

I currently have about five thousand 2D drawings, under many directories on one server, and all of them have a .prt extension. These files were created in the 90's using a software called CADKey. ...
0
votes
0answers
17 views

Scan picture by folder by month

I bought a new printer HP pro 8600. With my old printer I could scan pictures,for every month there would be a folder by the name of the month and the pictures would be inside of this folder. The new ...
0
votes
1answer
36 views

Is there a way to find out if a Windows 7 workstation has updates turned off in the control panel?

I have a domain with a group policy to run updates every night at 3AM. If the computer is turned off, the next time a user logs into the computer, the updates are downloaded. When the users shuts ...
1
vote
2answers
175 views

How to create multiple folders and name them by reading lines from text file?

I have a plain text file named Export.txt. It contains a list of geographical places, preceeded by a 3 digit number with leading zeros. Example --START OF FILE-- 001 Aberdeen 002 Bellevue 003 Camas ...
1
vote
1answer
45 views

Powershell script with multiple msiexec calls [closed]

I am having problem with multiple msiexec calls in my PS Script msiexec /package $msi1 /l*v $logfolder\log1.log /qn msiexec /x $msi2 /l*v $logfolder\log2.log /qn msiexec /i $msi3 /l*v ...
1
vote
3answers
42 views

Is there a tool that could help me use my Linux scripts in Windows? [duplicate]

I am new here. I would like to know if there is a tool that would help me use my Linux scripts in Windows? I am more comfortable with Linux commands than Windows. I also tried to download a software ...
1
vote
1answer
51 views

Search for a directory and delete it

I want to search the c: drive for the existence of directory called XYZ. Then I want to delete it and all of it's contents. There will be multiple directories named XYZ at different levels in the ...
0
votes
1answer
50 views

How to run a batch script which is on a server, but it should be run on a PC remotely

There are many batch scripts on one of our servers that are shared to everyone. These are scripts like Robocopying, portable apps, etc. I am in tech support, and when someone asks me (for example) "I ...
0
votes
1answer
53 views

How can I run a batch file only one time per comptuer?

I have a batch file that I want to push out to make some changes, but the changes take a while and only need to be done one time, how can I manage this?
0
votes
1answer
51 views

Rename a dynamic folder in windows using batch script?

C:\Users\xxxx\Downloads\CarepointServiceR2_CarepointServiceR2_**109**_artifacts The Number which is highlighted is dynamically changed each and every day.I have to rename this like ...
2
votes
1answer
414 views

BGinfo not updating desktop

I have attempted every method of automating bginfo to run at logon unsuccessfully on my Windows 2012 R2 server. I though it was a scripting issue until I manually specified the path to write the image ...
0
votes
0answers
34 views

Powershell not exiting when called from Orchestrator

I'm trying to run a powershell script from orchestrator. The script works fine from my interactive prompt but when run from a orchestrator runbook it never exits and the overall runbook appears to be ...
0
votes
0answers
65 views

Cygwin can't execute Shell script

I am trying to execute a Shell script using Cygwin. When I type this in the Cygwin terminal: sh build-native.sh I get this: build-native.sh: line 2: ndk-build: command not found It's a script ...
0
votes
0answers
19 views

How can I get a list of incoming Radmin connections?

I have a growing problem where users are connecting to production servers (as they should), performing work, and closing the Radmin Window without logging out of Windows. Asking people to change has ...
1
vote
1answer
64 views

Send HTTP request to website with password and username, then record results

I need to record certain numbers (temperature and others) from a web-based monitoring service (LaCrosse Alerts). However, you must login to use this service. I have an account, and am starting to ...
0
votes
2answers
71 views

Script to copy text including today's date into clipboard

I'd like to know if its possible in Windows for a script (or similar) to be written that will copy today's date and specific text into the clipboad, in the following format: dd/mm/yy - xx - xxx ...
0
votes
1answer
94 views

Script to run after joining domain

Is there a possibility to do this? I want to run a script that defines my network drivers and runs an .exe after it joined the domain.
4
votes
1answer
234 views

Simplest setup on Windows to send HTTP request, get and apply regex to response, and write match(es) to output file

I'd like to write a script that records the size of the close votes review queue on SO (currently ~95.5k), polling just a few times an hour, so I could plot a general trend. I know what I'm going to ...
1
vote
0answers
106 views

How can I modify the BAT file in this post so it will randomly select 1 background contained in a folder containing multiple backgrounds?

Is there a way to modify the bat file from this post here: How do I set the desktop background on Windows from a script? so that it will randomly select 1 background image from a folder containing ...
1
vote
1answer
345 views

Running remote scripts on Linux Servers from Windows

I'm on a Windows server, I'm looking for a way to run some scripts (through RSH?) remotely on Linux servers. Thing is, I have to do a lot of stuff manually on different servers whenever I want to ...
0
votes
2answers
50 views

Sycronizing/deploying scripts across several systems

I have a few time consuming tasks that I like to spread across several computers. These tasks require running an identical ruby or python script (or series of scripts that call each other) on each ...
0
votes
1answer
47 views

AutoHotKey: How do I check for the presence of a button with a certain label?

I have two Windows which have the same window class and title texts. The only difference are some buttons that are on one but not the other. Using AutoHotKey, how can I check for the presence of a ...
0
votes
1answer
123 views

Converting Windows batch to Linux script (Batch create symbolic links by first character)

As a noob to Linux and scripting I'm unsure as to how to convert this into a linux script or even where to start. Essentially I want to create a script that creates alphabetized folders A-Z, symlink ...
0
votes
7answers
137 views

Programmatically find out whether a computer is a server

I want to programmatically find out what version of Windows a computer is running. In the CMD shell one can type ver which for my computer returns: Microsoft Windows [Version 6.2.9200] But that ...
-1
votes
2answers
54 views

Window XP start script before service

PC with Windows XP prof. controls small production line. On Windows start-up I want to backup production data (created last day) before system starts particular service and application. How to start ...
1
vote
0answers
38 views

Script to port specifc data from doc1 (notepad++) to specific place(s) in doc2

I really appreciate your help with a windows script or regex function that ports specific data from doc1 (xml in notepad++) to specific place(s) in doc2 (notepad++). I'm running win8. Thank you in ...
0
votes
0answers
93 views

How to extract multiple zip files with possible duplicate file names in a single folder

I have a list of many zip files(with duplicate names) that need to be downloaded(maybe by wget) each of them contain a single file , I need to extract all of them into a single directory , but due to ...
0
votes
2answers
166 views

Script to find number of zip file in folder [duplicate]

I need a script that counts the number of .zip (zip files ends with monday_abc.zip) files in a folder on windows 2008 server. Is it also possible to find the last modified zip files and the number of ...
3
votes
4answers
321 views

How to automatically hide files put in a specific folder?

How should I go about automatically hiding files that I paste/drop in a folder, for example C:\test\ ? I thought about creating a batch file or using a program which runs continuously on the desktop ...
0
votes
0answers
24 views

Insert splash screen into multiple videos?

I've got around 100 videos that I've generated a unique splash screen for based on some metadata and the file name. The files are named "videoname.avi" and "videoname.png" and are in the same folder, ...
0
votes
0answers
23 views

Windows: Scriptable “zoom in” possible?

I am wanting to automate "zooming in" to a specific area on the screen. For instance, there is a windows application that can not be resized or made full screen. I would like to "zoom in" to this ...
0
votes
1answer
962 views

Batch Scripting - How to delete a subfolder (files/folders) over several directories

I need a batch file to traverse a directory structure that looks like this C:\CruiseControl\ProjectArtifacts\ProjectName1\Logs C:\CruiseControl\ProjectArtifacts\ProjectName1\Src ...
0
votes
0answers
23 views

How to send data to append in server log file?

I want to make a log of all IP's on client computers, to track where they've been. I made a script on the client and I can get all the info I wanted and trigger to send when the network is connected, ...
0
votes
1answer
400 views

Automate creation of taskbar shortcuts

I have Windows 8 computers on a domain. I want to create a Group Policy Object to create taskbar shortcuts for users as they move onto different machines. I have created a batch file that will copy ...
0
votes
1answer
86 views

Outlook: A Script rule how to move a email to a specific folder and copy the headline into the new folder.

I have a query about how to move my suppliers quotes into a specific folder and automatically create a folder with the specific enquiry number. So the first step is to create the rule and the folder ...
4
votes
1answer
216 views

How to call a cmd on a remote server without having the absolute path

I would like to call a cmd (let's call it x.cmd) on a remote server. The x.cmd will return a log file in a log folder. Problem is this log folder in x.cmd doesn't have an absolute path (just a ...
1
vote
4answers
5k views

Script - How to check if a network path is available and then map it

I would like an screen saver / logon script that checks if a network path is available and then map it to a unit. If it is not available it disconnects/don't connect. Network path is ...
0
votes
0answers
17 views

Is it possible to have IDE-like snippet that can be used anywhere?

For example, in visual studio, I can type "propfull", tab and it will autoexpand to this template private $type$ $field$; public $type$ $property$ { get { return $field$;} set { $field$ = ...
1
vote
1answer
409 views

Windows command to copy file forcefully when that file is used by another process

I am copy a file using copy command. But its throwing some error. copy /y ..\BuildLog.htm . Error is : The process cannot access the file because its used by another process XCOPY /Y is also ...
1
vote
2answers
162 views

Script to disconnect mapped network location

I have a user who needs to map a certain network location to drive O:. Every so often, this drive loses it's map to O:, but will show up under different letters, such as H:, K:, and L:. The normal ...
1
vote
2answers
2k views

Shell script that monitors CPU usage and terminates services with high CPU utilisation

We have a Windows 2003 server where 3 services are running constantly. Sometimes these services consume over 90% CPU. Restarting these services returns normalcy. I need a script/program that will ...
-2
votes
2answers
1k views

Need to write a .bat file to select all the text on a webpage and paste the text into a new txt file

Below is what I have so far, which opens chrome, goes to the URL, then opens a new .txt file. I need to select all the text on the page, copy it, paste it into the BigData.txt file, then save the file ...
1
vote
2answers
422 views

How do I perform a test on two txt files and save the differences in a new text file?

For example... I have txt file called New and txt file called Old... How can i create batch script to check both txt files and then create new text file with lines that aren't in both of them (New and ...
1
vote
1answer
89 views

I want to get only the Filename in Windows Command Prompt

I have a problem: I want to get the filename only from this path line in Command Prompt Here's my path: \\jktfile-01\lsmk\SRP\BankPelapor\201209\Instance\2882000-2012-09-30-BSMS26.xml What kind of ...
2
votes
3answers
10k views

copy file from windows to Linux

I am writing one script. it will run one linux machine. its targets includes linux, solaris and windows. I know that i can use scp to copy files between *nix. but how about copying file from windows? ...
2
votes
3answers
277 views

Copy one list of files to another

I have a list of files extracted from a table in a SQL database. The file can be either a delimited text file or an excel spreadsheet, whichever works best. The file looks like this ...
1
vote
2answers
312 views

Making Windows scripts run in Unix

IS there any way to make Windows scripts (BAT) files run on a Unix machine? Like importing a function or a library for example, which is only recognised on the Unix OS, but has no effect when run in ...
1
vote
2answers
106 views

can I script to mount a drive to a mountpoint in windows

My windows server guy created a mountpoint drive for me, such as drive letter E for my SQL Server database files. I can use Disk Management in Computer Management from Administrative Tools to map a ...