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
2answers
79 views

Autohotkey script for alt+F4

I need a way to create a shortcut icon on the Desktop that when clicked, emulates the press of ALT+F4. I was thinking at AutoHotKey, I have bound the alt+f4 combination to F12, but then I can't manage ...
0
votes
1answer
121 views

Create script to login and change time on unix Darwin

I work for a non-profit and recently had to take on some sysadmin responsibilities, and and it is a new area for me. We have a Apple X Server that is running Darwin, and from time to time, especially ...
1
vote
0answers
15 views

Merge pdfs based on first two words in file name

I have a folder containing a number of files with the following filename structure: John Doe - title.pdf John Doe - title2.pdf John Doe - title3.pdf Jane Smith - some title.pdf Jane Smith - second ...
1
vote
2answers
966 views

Is there a Windows script to disable & enable the Intel GPU?

So I've bought a new laptop with the Intel 4400 GPU. Which I'm trying to connect to an external monitor with hdmi, only the monitor gives me a no signal error. So I went on Google and found a ...
5
votes
3answers
2k views

Logout user script

I am trying to create a script in ARD that will let me logout a user. Now I have a script which does start the logout, but I want it to execute instead of waiting 60 seconds. The script currently is:...
0
votes
0answers
7 views

Get shell script to run without terminal window open on mac? [duplicate]

I need to be able to run a shell script without a terminal appearing. I also cannot use Automator as that shows a swirling icon on the menubar. I run 10.10.5 if that helps
0
votes
1answer
5 views

linux, X11, dialog menu with items

I'm looking for a scriptable dialog utility for Linux/X11/Wayland that I'd run like this: $ ask F="Delete all files" D="Launch drones" X="Open images" and it'd display X11 dialog window similar to ...
3
votes
1answer
4k views

Powershell Script to SFTP New files

I have a script here that SFTP's files from one location to another, the script works fine however I'd like to change the script so that it only copies files that are not already present. Bit of a ...
6
votes
4answers
3k views

Hook into linux mount/umount event

is there a way to provide post-mount and pre-umount scripts in Linux? I am trying to do some scripts on storage media when mounted and before umounting (eg, for synching). Any help appreciated.
1
vote
1answer
10 views

Scripting: Copying to and Pasting from String Variables

I am trying to write a script in the AccuTerm emulator. For the most part I have what I need down except some code that will allow me to copy and paste in the program. The commands to simply copy a ...
2
votes
2answers
5k views

How to Find User Name and IP address of users Logged on a Remote System

How can I find user name(of the local machine) of the last logged on user on a remote system. Is there any command or script we can use? I am able to capture IP address of the local machine of the ...
36
votes
7answers
46k views

When to use Bash and when to use Perl/Python/Ruby?

We are doing all our scripting with Bash so far, but I'm starting to feel a bit silly about it. While we can of course do everything we want with Bash (it's quite powerful), I'm starting to wonder if ...
0
votes
0answers
11 views

tclsh script within a sh script permissions

I am having an issue with calling a tclsh script from within a sh script on Ubuntu. I can call the tclsh script form the terminal successfully, yet as soon as I try and automate its calling from ...
0
votes
0answers
14 views

Adding Office 365 users to Windows 10 through script

I'm looking to overhauling our computer systems. One method I was asked on is whether it's possible to automatically add Office 365 users through a script. The idea being, the script would read a csv ...
3
votes
1answer
223 views

How do I export favorites from Firefox and Import them in IE11?

I am looking at guidance write a script to export favorites from Firefox and import them in IE. any thoughts?
0
votes
1answer
25 views

Compressor detection issue when running curl command from bash script in Docker container

I want to execute curl using bash script inside the Docker container. This is my script file script.sh that I added to the container: curl -X POST http://localhost:9200/tests/test -d usr/share/...
0
votes
0answers
12 views

Is there a way to have a batch script restore the Quick Launch bar in Windows 7?

Every so often, my Quick Launch toolbar disappears. It might be when my laptop completely runs out of battery (e.g. while asleep) and even the CMOS time is zeroed. Or it might be certain Windows ...
0
votes
0answers
9 views

nppExec and Bookmarks

Suppose I am using notepad++ and have a bunch of Bookmarks set. On each line that I have a bookmark set I want nppExec (a plugin to notepad++) to do a task. So is there a way to get nppExec to ...
-1
votes
0answers
22 views

Powershell script to Output System hardware and software specs to Excel [migrated]

I'm attempting to incorporate the results of a powershell program (Get-IS) that lists installed software and software versions into another powershell program that creates an excel spreadsheet from ...
0
votes
1answer
3k views

Windows 7 (script): Create pre-defined folder structure

Is it possible to create a script, which can be activated through the right-click menu in Windows, which will create a pre-defined folder structure? Every time we get a new update at my work I have to ...
2
votes
2answers
7k views

Automatically responding yes to forfiles

I'm looking to automatically delete files older than 7 days old with forfiles. The code below works when I do it manually and respond yes to deleting the files. How can I incorporate the yes into ...
-1
votes
3answers
44 views

How to extract a specific line in multiple text file into a single txt file on linux?

I have 5000 txt files with the different data below that. I need a shell script to copy only line 11 (last line) of them into a single file and sort them from smallest to largest. for example: file1....
0
votes
0answers
23 views

Multiple instances Elmedia Player mac

For opening several windows of VLC I have a script like this: on run do shell script "open -n /Applications/VLC.app" end run on open theFiles repeat with theFile in theFiles do shell ...
4
votes
3answers
34 views

Default Homepage Overridden by Manufacturer Defaults

I've got a Lenovo Thinkpad that I'm trying to change the default homepage in IE in for all users. I've tried a number of things, but every time I create a new user the homepage is always the Lenovo ...
0
votes
3answers
4k views

Batch script to append record to csv files

I have a bunch of stock data in csv's that I am backtesting trading strategies on. The problem is that my strategy buys the open market price if a signal was found yesterday, unfortunately my data is ...
1
vote
0answers
29 views

Powershell: Can't post to Slack with otherwise working script

I am totally new to Powershell, but I needed an all-Windows solution for a Slack bot that monitors local folders. I am able to use the CLI to post to Slack successfully with the following two ...
0
votes
2answers
4k views

Local group policy logon startup script not executing

This is for Windows 7 I have a .bat and .vbs file in a folder. The .bat runs the .vbs script. In the Local Policy Group editor, under Windows Settings/Scripts I added a reference to the .bat file in ...
0
votes
1answer
122 views

Parameters with spacebars parsed incorrectly for a powershell script run from a batch file

I have a batch file that runs a powershell script and I need to pass two parameters to the script. In my batch it looks like this: powershell -executionpolicy remotesigned -File "my script.ps1" "my ...
2
votes
2answers
79 views

How to split a big .txt file with \n and not \r\n

I want to split a .txt file. First, I opened the .txt file with notepad++ and I changed the EOLs from \r\n to \n. Then I wanted to split the file into 10 pieces and for that, I used a tool called ...
1
vote
0answers
29 views

I need to occasionally restart my router to fix my internet connection. Can I detect it with a script and restart automatically?

I am using buffalo router WZR-HP-G300NH with DD-wrt firmware. The internet sometimes slows down and the devices cannot even join the WiFi. If I reboot the router, everything is back to normal. This ...
2
votes
2answers
619 views

Why does this batch script terminate unexpectedly?

This batch script terminates when %CHECKCONTINUE% is given a null value by not inputting anything on line 13 (SET /p CHECKCONTINUE=Okay to continue? (y/n):), why is this? @ECHO OFF SETLOCAL TITLE ...
2
votes
1answer
3k views

Force 64bit WScript to run .vbs

I'm trying to run a .vbs script under 64Bit. When I run this script manually it will execute properly, but when launched by something else, it will run under 32bit and won't execute properly. Here's ...
0
votes
0answers
20 views

How to fix messed up font and script of games on Windows 10?

A couple of games I had decided to play, had screwed up fonts and script, I thought maybe that the publisher of the games company was messed up, but as I tried other games by other developers, the ...
-1
votes
1answer
25 views

Windows script to replace text in csv file

I would like a windows script (without installation of external programs) to do the following: read each line in a CSV file if the line starts with ">r" then replace the 15th character with '...
-2
votes
0answers
22 views

Script for Automatic Merging

I was wondering if you guys could help me. I’m trying to find out if it is possible to have a script that will automatically pick up files saved in a set folder/location and merge certain files ...
-1
votes
1answer
23 views

How to check if there is data exchange with a particular host with a script

I have a video streaming server that streams video to many TVs. I need to monitor the TV's remotely, so I need a tool that monitors the server network interface and say sends and email when TV A does ...
0
votes
2answers
54 views

In Bash, how to randomly select a file from a static list?

I have this bash script while true ; do for i in * ; do cp "$i" ~/slideshow.jpg ; echo $i ; sleep 5 ; done ; done How can I randomize this process?
0
votes
0answers
22 views

Running a script on startup for all users in a GROUP

Trying to solve the problem of running a script for users who profiles do not yet exist (has not logged in yet), ideally if there was a way to assign a script (on startup - like under the START menu) ...
3
votes
1answer
8k views

SSH could not create directory /home/USERNAME/.ssh

My script is executing the below command: command = os.system('rdiff-backup --exclude "**.dropbox**" --exclude "**.ini**" --remote-schema "ssh -o UserKnownHostsFile=/cygdrive/c/Users/Adam/.ssh/...
13
votes
5answers
9k views

Bash: create anonymous fifo

We all know mkfifo and pipelines. The first one creates a named pipe, thus one has to select a name, most likely with mktemp and later remember to unlink. The other creates an anonymous pipe, no ...
1
vote
1answer
107 views

How do I write find/write the script to restore a guest user in Lion (Mac OS X)?

In Mac OS X 10.7, you cannot have a guest user if you encrypt the entire drive. An alternative is to create a psuedo-guest user. One of the downsides is that the feature where the guest user is ...
0
votes
0answers
35 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 ...
21
votes
1answer
15k views
0
votes
0answers
20 views

Disable execution of specific script at page - Chrome or Firefox

Is it a way to disable a specific javascript at a page? For example at the great Proxomitron I was able to specify something like <script*unwanted.js*</script> or <script*$form.find*</...
2
votes
2answers
29 views

Running a Ruby script once at Linux login

I have a Ruby script which takes quite a while to run (5-20 seconds in most cases) and its purpose is to generate configuration files for Conky and Fluxbox. At the moment I have the Ruby script set ...
0
votes
1answer
45 views

Find duplicates string in a text file and print the duplicated string alone in another text file

I am trying to find duplicates in my huge text file and trying to print it in another text file. But I am unable to print it in another. Here's what I have got so far: for dup in $(cut -d " " -f1 ...
2
votes
1answer
27 views

Move all images whose names appear in a txt file to a new folder using the windows command line

I have a text file which contains the filenames of all JPEG files in a folder. I use something like this to populate the text file. dir /s /b /a-d c:\temp\*jpg > c:\temp\Images.txt Example: ...
0
votes
0answers
33 views

List of Subfolder names and file links in google sheets - script

so I'm trying to get a google sheet list of file links in folders and subfolder which I'm keeping in google drive. it should look something like this: one main folder with a couple of subfolders ...
1
vote
1answer
21 views

Powershell Script not firing

I'm pretty new to powershell but im executing the following script in PS ISE: $source = "E:\MEX_Websites\Customer_Hosting\MyFolderB\Reports\" $filter = "*.*" $fsw = New-Object System.IO....
-1
votes
1answer
53 views

Bash Script to backup and restore directory structure

Basically I have this directory structure in Linux. Backup Dir_1 Sub_Dir_1 file_1 90 GB file_2 10 GB Sub_Dir_2 file_1 20 GB Restore Dir_1 Sub_Dir_1 ...