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)

-2
votes
0answers
18 views

Powershell script

How can I give read&write permissions only to files not the folders. I mean a user can delete,modify the file but cannot delete or modify a folder. how can we do it with powershell script.
0
votes
0answers
6 views

Tracing text and placing symbols in the corner of each letter

First of all, I hope this is the right place to ask this question. My website is generating simple PDF files with user-inputted text through tcpdf. The text in the PDF is just normal text with ...
2
votes
1answer
31 views

How to find folders with certain files and delete the folder?

I'm looking for a way to find and remove every folder which contains files with extension .drt in it. It's a networkshare and structure is shown below, in this case I want to delete subfolder 1 and 3 ...
1
vote
1answer
20 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 ...
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
7 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 ...
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 ...
0
votes
0answers
12 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
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 ...
0
votes
1answer
32 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/...
-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 ...
-1
votes
3answers
47 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....
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 ...
1
vote
0answers
32 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
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 ...
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 ...
0
votes
0answers
21 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 ...
-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) ...
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 ...
-1
votes
1answer
27 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 '...
0
votes
0answers
21 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
31 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 ...
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: ...
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....
0
votes
0answers
34 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
votes
1answer
55 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 ...
0
votes
1answer
49 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
56 views

Searching through a txt file and printing next word of a string

I have a batch script which will print the entire line of search string into a text file. for %%i in (configure.txt) do ( FINDSTR /C:"Widget Name=" %%i >> output.txt ) Here is how my ...
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 ...
1
vote
2answers
90 views

How to unlock Windows 7 screen using script

I am wondering if there is any way to unlock Windows 7 screen lock using a script. I have administrator permissions on this machine. I know this question have been asked before without a solution, ...
0
votes
0answers
41 views

Cancel button not working in form created in powershell

We are creating a powershell script that creates a form window, that accepts a password. Now normally this is rather simple, but we are having it loop 5 times if a wrong password is created. We have ...
0
votes
1answer
33 views

Run script with 1 min delay

How to make delay for mining scrypt. I want, when start or restart windows, this script start automatically after 1min. Thank you very much and regards
0
votes
0answers
38 views

Is it possible in Photoshop to cut rectangular slices of the same dimension from a “n” number o photos in adiferent position each one?

Im trying the technique called Time Slice which is basically this: you have "n" number of photos and cut a slice from every one of them, in the order they were shoot and following a patron in the ...
0
votes
0answers
2 views

Automate placing custom svg inside template svg for printing a variety of posters

I have to print a number of different posters, each with a template and then a custom graphic within a container. If I can get the id of the container within inkscape, how can I script cycling through ...
0
votes
0answers
6 views

Specify schema from the Linux CLI when running script with psql

There's a lot of information out already on how to choose the schema and import a script from the psql CLI, but I have a use-case where it would be more advantageous for me to be able to choose the ...
0
votes
0answers
23 views

ping results exported to .csv to multiple rows and columns

I have a script that I run to ping multiple Ip addresses. It works just fine with everything that I have in it the way I want it. The problem is the export. I need "Router" to Start in Column "A" ...
0
votes
0answers
19 views

How can I use the START command to open Netlimiter's NLClientApp.exe in minimized mode?

I have placed this 3-line script in my Startup folder: @ECHO OFF TIMEOUT /T 45 START "" /MIN "C:\Program Files\Locktime Software\NetLimiter 4\NLClientApp.exe" I want to delay the start time of ...
0
votes
2answers
48 views

Can I delete only the first matching line using sed?

I have a file testfile.txt containing pippo=x pluto=y 1234=z I'd like to delete only the first line matching /^[a-z]\+=/ (the first line in this example). I've tried with the following command but ...
2
votes
1answer
29 views

How to delete a file from a command in a shell file for /etc/init.d?

I have a about question working with /etc/init.d shell script. All I want to do is delete a file from a command inside the shell script like so: case $1 in stop) echo "Stopping" rm -f /var/run/...
0
votes
0answers
54 views

Automate Exporting of Outlook Calendar to CSV

Is it possible to create a powershell or cmd script that will automatically export Outlook's calendar to a CSV file? Edit: There is a way to do so from within Outlook, but I was wanting an example as ...
-3
votes
1answer
33 views

file_put_contents is not overwrite / overwrite context option not specified [closed]

I heard that file_put_contents overwrite the file if it exist ? That's what i want but it doesn't work. What do? $contentsAnnonces = file_get_contents("http://website1.fr/file.xml"); $...
0
votes
1answer
34 views

Run and edit a Perl/Python/non-Powershell - Script in Powershell_ISE (Windows Server)

I am on a Windows Server (2012) with Powershell_ISE and befor installing additional software I wanted to edit and test a script in the Powershell_ISE (it's a better native solution than using notepad +...
0
votes
0answers
35 views

Script on router with DD-WRT can't be executed because it isn't found

I have a netgear nighhawk r7000 router with the DD-WRT "Kong Mod" release: 04-19-2016. I was trying to block ads directly on the router with pixelserv following this tutorial http://www.howtogeek.com/...
0
votes
0answers
21 views

When Click Reply, Insert Email Signature from Reply Email to Reply Body Email

I am trying to create a script that when I click reply to an email it will pull the specific signature details from the previous email and insert it in to my new body. The signature always starts and ...
1
vote
0answers
48 views

how the macchanger script actually works

How does the macchanger script in KALI Linux work? I believe that it changes the MAC of the interface in RAM so that the spoofed MAC is attached to the packet until the system is reset. How does the ...
0
votes
1answer
15 views

How can I add lua support to grub2, or at least file copy functionality?

I am trying to add lua support to grub2 and having a devil of a time finding info on how to do that. The links provided in the answer to (String manipulation in Grub2) no longer have any lua ...