Tagged Questions

An automated series of instructions carried out in a specific order, such as a Windows script created to launch a specific program on startup.

learn more… | top users | synonyms (1)

0
votes
0answers
8 views

Displayresolution + clone mode in Windows 8.1 in script at startup?

I want to force a dualscreen system ( 1: Monitor, 2: Projector) to a) set the dual screen clone mode for monitor and projector. b) set the screen resolution of both to 1280x800 This needs to be ...
1
vote
0answers
33 views

Automatically run executable files with third party program/script in Windows

It is possible to launch an exe file using a third party program through the context menu. My problem is that an exe file might be triggered by a script or by another application on which I don't ...
1
vote
2answers
18 views

Can I automatically restart a pc with a prompt to restart or postpone

What can I do so that I can have a pc restart at a particular time each night and it prompts the user to continue to restart or postpone with a specific time frame?
0
votes
1answer
17 views

Create empty MySQL database via batch file

I have read several answers here but can't see to get the syntax right. The task is to get a batch file that inputs a variable (db) and uses that variable to create an empty MySQL database. My ...
0
votes
0answers
18 views

Shell script force stop without waiting for the exit code

I have written a shell script checklick.sh on my CentOS box with the following content: #!/bin/sh # # description: check link through rtmpdump # . /etc/rc.d/init.d/functions ...
-3
votes
0answers
17 views

Windows 7 Local Security Policy [on hold]

I need to write a script to change the Local Security Policy of a computer fast. The problem is that I don't know what scripting language to use, and how to use it to change the policies. For ...
0
votes
0answers
18 views

How can I make Outlook auto redirect emails to email address in body of email?

I would like to redirect a message received from a specific email to another email address. The email address to which the message will be redirected to will never be the same. I have looked through ...
-2
votes
0answers
17 views

File Exists Windows Script [closed]

I've researched and read a lot of posts that give very good examples that would show me if a file exists or not. However, what would be a good script if I have multiple files that live in multiple ...
0
votes
1answer
20 views

How can i download .exe file from web and run it automatic

I need to create some script (maybe .bat/.vbs or something else) or something else that will download and open the file on double-click. Can you say how can i do this? Example: I double-click on file ...
0
votes
0answers
17 views

How can I make sure program A quits/can not be started if program B is started/is tried started?

I want to be sure that a program A can not run at the same time as program B as they can interfere with each other. I would preferably make a windows script that I can automatically launch at system ...
0
votes
0answers
17 views

Windows Script Host

My batch file runs on my PC, but when I run it on the server, it calls the Windows Script Host (WSH) which seems to hang the process. There are no settings for the WSH. when I kill the WSH my batch ...
0
votes
1answer
44 views

Script to download files from SSH Server

Is it possible to create a script that follow the same commands FileZilla executes when connecting to an ssh server? When I login manually using FileZilla I get the following message for the ...
0
votes
2answers
60 views

Parse out specific parameter from python script

I have a chage output that I formatted myself called accounts. It basically has the name of the user listed as a section and then the information below it (which are the parameters). I would like to ...
3
votes
1answer
50 views

Map a network drive to be used by a service

I am trying to map a network drive (the WD My Cloud HDD) to be used by a service (CrashPlan backup software) in Windows 8, something that I have achieved with this script: net use X: ...
3
votes
1answer
66 views

Restart-Computer and hold script

I'm running a Powershell script that requires a reboot in the middle of the script. After the reboot, the script is executing some commands (that can't be executed before the reboot!). I'm rebooting ...
2
votes
0answers
51 views

Unlock PC with Windows Task Scheduler

I need to set up a Scheduled Task to unlock Windows 7 PC at specific time. And second Task, to lock at other specific time. Is this possible by cmd.exe command, or I need to use some third party ...
0
votes
2answers
48 views

How can I automate the deletion of all files in a specific folder on a daily basis?

I have a media center and I would like to set up a script/automation that deletes all files in a specific folder once a day. I know that I can do this in the Microsoft Task Scheduler with a .bat ...
2
votes
1answer
89 views

Batch delete temporary Windows files (system, browsers, cache, etc) for all users

Is anyone in this community using a particular technique to achieve batch deletion of temporary data (such as Windows temp folders, browsers cache, etc) for all users? The tricky part seems to be: ...
0
votes
2answers
34 views

Executing Commands In Parallel That Never Finish

I'm attempting to run a few commands that never finish. These commands watch a directory and update files when they change. The idea is that I need multiple folders watched by different tools, able ...
0
votes
1answer
32 views

Upload image links placed in text file to imgur

Is there any way to upload images to imgur account when image links are placed in text file or copied in clipboard . Also give output something like this for all files . Platform - Windows 7 . Can ...
1
vote
0answers
15 views

How to control the PFE Mailprinter?

i have here a PFE Mailprinter. It is a device that takes printed documents from a printer (in this case the Koycera Ecosys FS-3750), folds it the letter-way and puts it in an envelope. The problem: ...
2
votes
1answer
24 views

Removing AD Group members according to their memberships to certain groups in the same OU

Our AD groups for Websense filtering has been set up with very little flexibility for policy management. There are only two groups for "Permit all" web browsing category. Now I need to create over 20 ...
0
votes
0answers
11 views

How can I Embed my password with script

I have a requirement that I must run a script(with administratiev priviledge) during one of my Guest user startup.But I dont want to prompt my user for any password.In my case I'm ok with leaving my ...
3
votes
4answers
357 views

On Linux or Windows, how do I find the path for all mp3s that are the only mp3 in that directory?

I have a Music folder and the contents look like this: Music     -ArtistA ...
0
votes
0answers
32 views

CMD - Script for checking machine-type automatically

I work at a school and a lot of my work consists of updating, configuring and reformatting computers. I have created a script to do most of the work, but among other things, Ii still have to choose ...
0
votes
2answers
48 views

Batch file, script or shortcut to delete the most recent file in a specified folder

anyone know how to make a batch file or script or some other simple thing like a shortcut that calls some exe to do the following: I want to click on something (batch file, script or shortcut) that ...
0
votes
2answers
64 views

Update a sqlite database while select into a while loop

There is a bash script that will do "some magic"™ to files which will be referenced to a sqlite database and after doing "some magic"™ the database should be updated. Here are the simplified code ...
0
votes
0answers
16 views

Script output from Curses program like mtop

I'm trying to write some automated scripts to store things like cpu usage etc. In 'top' there is a batch mode, so I can output this fine. In a program like mtop, where it uses 'Curses' and no batch ...
1
vote
1answer
48 views

How to use linux bash “sort” command in a portable script?

I am writing a bash script and I want to make it portable, to have the same results in the other computers. From this question I learned the system settings, like language settings and possibly other ...
0
votes
2answers
26 views

CMD Line executable of PUTTY calling a script

I have been trying to automate a telnet process using a script of sorts. Whenever I get a hint, it points to PUTTY. I have downloaded PUTTY and the derivatives thereof, (plink.exe) to get my script ...
3
votes
1answer
20 views

How can I automate some simple steps within the GIMP?

I'm trying to use GIMP to automate 3 actions upon a user defined selection in the currently active image - Grow selection by 2 Add border to selection (width of 2, with feathered edges) Fill the ...
0
votes
0answers
28 views

Test availability of a web page

We have a page that proposes some administrative appointements that are almost impossible to have, because of the irregular and unconstant updates from the site administrators. Once these ...
0
votes
2answers
53 views

Script to disable “Show Characters” in the WIFI network properties

I want to know if it exist a script to disable the "Show Characters" check box in the WIFI network properties. I know it is possible to do it manually, but given that we have a lot of computer to ...
0
votes
1answer
31 views

MEncoder & Youtube-upload Scripts retry if they fail

I have a script that encodes a video every day (cron job) and this video is uploaded to youtube just after its creation. Although sometimes these scripts fail. How can i make the script to retry ...
0
votes
0answers
6 views

Equivalent of apt urgency flag in yum changelog?

I develop a cross distribution package manager, and i want to get the urgency of all updates on APT et YUM based distributions. With APT, it's simple, I have to fetch the changelog with apt-get ...
0
votes
1answer
38 views

Adding more than one image as album art to mp3 via command line

I want to add two images (front and back cover) to my converted mp3s. At this time I convert all my WAVs with lame, then I convert the ID3 tag version from 2.3 to 2.4 via eyeD3 and then I will add two ...
0
votes
1answer
65 views

Using Get-ChildItem but only look at the 2nd level down

This is probably really simple but I can't seem to find the answer. I'm looking for a way to only look in the second level down of a folder for a file. i.e. C:\Data C:\Data\Level1 ...
0
votes
1answer
31 views

Running at close to 100 cpu

So I have a python script that is really pushing the limits on concurrency. When the script is running, the cpu load of my computer is close to 100% at all times. Can this harm my computer? To be ...
1
vote
1answer
44 views

Script to scan through several directories, look for a file and copy it to a new name.

Hopefully someone can help me out here. I need to clean up some data on a regular interval but short of doing it manually I haven't come up with a good solution. Here is the flow that I go through ...
4
votes
2answers
70 views

How to invoke actions from an executable in PowerShell?

I am using Powershell 2.0 on Windows 7 SP1, but any answers covering versions 1.0-4.0 would be nice. I know that this command opens Paint via PowerShell: & "C:\Windows\system32\mspaint.exe" ...
0
votes
0answers
10 views

How to set a specific script on NoScript?

I'm on a page where you can't copy anything, and if I turn off scripting permissions, it lets me copy, but if I don't, it doesn't, and I can't do anything else that I need to do. Is there any way to ...
2
votes
1answer
43 views

Creating directory name from file name - strip out non alpha numeric characters and make lower case

I am able to create a directory based on the name of a file. I am running into a wall if the text has spaces or non alpha numeric characters. I would like to strip out those non alpha numeric ...
3
votes
1answer
97 views

Float integer division and setting variable value

I am currently learning the world of bash scripting. I am aware that bash by itself does not do arithmetic with floating integers. I have done some research and have found that there are tools that ...
1
vote
3answers
64 views

What are some good techniques to make your Windows installation something you can throw away and rebuild quickly and easily? [closed]

I don't want to care about my C:\ drive. I want to be able to casually reinstall Windows whenever I want, and be up and running quickly, with the programs, configuration, and data that I like. This ...
0
votes
2answers
36 views

my first linux script won't run

I am trying to write my first linux script (running on chromebook in devmode). Here it is: #!/bin/bash echo 'hello world' This is stored in ~/Downloads/app/run. When I try to run it I get the ...
0
votes
0answers
41 views

MSI Cooler Boost Auto Enable

I have an MSI GE60 Apache-469 that has a button to turn on a "Cooler Boost" mode. This basically cranks the RPMs of the fan up to the max, cooling the laptop considerably. I would like to ...
0
votes
0answers
32 views

Maintain screen session when executing shell script on boot

On Ubuntu 14.04, I have a crontab entry set to run on reboot: @reboot /root/start_server.sh And here's start_server.sh: screen -dmS server bash -c "cd server ; ./run.sh" When the system starts ...
0
votes
0answers
32 views

Change State of Windows Update- Local Group Policy Editor without UI?

In windows server 2012,for this manual step how can i do from script, start>run>gpedit.msc>administrative Components>Windows>Windows update In that 1) Do not Display " Install ...
1
vote
2answers
168 views

Writing only first line of the command output in Windows cmd to a file

I want to modify the command somecommand >> file1.txt in a way that only the first line of the command output be saved to the file. How is it possible, what script is needed?
0
votes
1answer
26 views

How can I automate this task in Notepad++

I've a text file with around 200+ table names. Sample like this T_BCPCOMITEE_EA4 T_BCPEMERSIT_EA4 T_BCPROLE_EA4 T_BDR_AG_EA4 T_BDR_CRITERIA_EA4 I need to take the table name and add a select ...