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)

1
vote
1answer
7k views

Run a batch file on a remote computer as administrator

I am trying to run a batch file (to install some software) on a remote computer. To do this, I am using PSExec. psexec.exe \\COMPUTER C:\swsetup\install.bat This works fine, apart from some of ...
0
votes
1answer
2k views

List Mapped Drives of All Users

I often have to replicate the mapping of drives of one machine to another. While I know how to easily output the data for the CURRENT user I have not found a way of doing this for others who are not ...
-1
votes
0answers
18 views

Rename multiple xml files with the content inside it using windows batch only [on hold]

Here is my requirement. I have multiple xml files in a directory and i need to rename these XML files with the content inside the XML File using windows batch scripting only. Example :: XMLFILE ...
3
votes
1answer
4k views

How to add a network (IP) printer using command line or a script?

My company will be deploying a bunch of laptops that will be used during a seminar for people to sign up for services on our website. At the end of the signup process they will need to print out a ...
0
votes
2answers
20 views

Finding a file with vbs and the open the location folder

is there a way to make a script in vbs (or other) that search in each hard drive partition for a file and then opens the location folder of the file if the file was found? So if I want to find the ...
-2
votes
0answers
3 views

Need a php script to connect my asterisk and fetch each incoming call Call ID, A number, B number? [on hold]

Need a php script to connect my asterisk and fetch each incoming call Call ID, A number, B number? And all this settings export to a xml file to be able to read with another program?
0
votes
1answer
12 views

How to call in one line multiple processes in serie

If I run the following script with 3 lines: process1 process2 process3 then process2 will wait for process1 to start, and the same will happen with process3. How can I do the same in only one line ...
1
vote
0answers
12 views

How to burn multiple sets or groups of MP3s with multiple drives simultaneously

I have lots of MP3s that I need to burn into multiple audio CDs. I manually select 80 minutes or less of audio at a time, using multiple sessions of k3b with multiple CD-R drives to burn ...
0
votes
0answers
9 views

Need help on renaming of files in a remote server using batch file

I need to rename a file in Server B using a batch script. This is easy: rename \\servername\path\test.txt test.old On Server B, I have an application that will create a file daily at 9pm. Eg: Every ...
5
votes
3answers
655 views

Create a flat file where control characters have been interpreted in Debian

I like to use the 'script' command to record console sessions. The problem is that the 'typescript' file which is created contains control chars (when using arrows or the delete key). Apart from ...
0
votes
1answer
26 views

Filemaker mail script text with fields and functions

I trying to send an e-mail with the filemaker 10 "send mail" script template. Is it possible to define in the message box text with fields and functions? Example: Hello Richard This is a text List ...
0
votes
3answers
4k 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 ...
64
votes
14answers
19k views

Add directory to $PATH if it's not already there

Has anybody written a bash function to add a directory to $PATH only if it's not already there? I typically add to PATH using something like: export PATH=/usr/local/mysql/bin:$PATH If I construct ...
1
vote
1answer
6k views

Batch file script for Enable & disable the “use automatic Configuration Script”

My intention is to create a .bat file that toggles the check box of "use automatic Configuration Script" in Internet Settings. The following is my script @echo OFF setlocal ENABLEEXTENSIONS set ...
-2
votes
1answer
31 views

AHK Anagram solver [closed]

I'm trying to make a "real time" anagram solver, but the only way I can think of is gonna take AGES to make. for example with the word tree: ::reet::tree ::eret::tree ::eert::tree ::teer::tree ...
0
votes
1answer
42 views

how to get files list in a folder with batch file without file extensions

What I used is below and its perfect but results are with file extension.(ABC123.pdf) dir /a /b /-p/o:gen >C:\WINDOWS\Temp\file_list start notepad C:\WINDOWS\Temp\file_list I need results ...
1
vote
1answer
50 views

Why does this script work as expected in 'curl', but not in the browser?

I have a script which when accessed with the HTTP protocol will send some data, pause for a few seconds, then send some more data, repeating until all the data is sent. When I access it in curl, it ...
0
votes
0answers
8 views

Visual Studio: Display different files as one underneath each other (as “autopager” browser-extensions do for websites) / scroll through them

does any of you know a way or an addon to "scroll through" different files in VSs editor? When starting a project I sometimes have quite a lot of files each of them being quite small and me jumping ...
0
votes
1answer
24 views

Copy a file with current date stamp to another location-Shell script [closed]

I have some log files creates in a location like this format. 2015_01_07.stderrout.log 2015_01_08.stderrout.log 2015_01_09.stderrout.log 2015_01_10.stderrout.log (one file is created per day with ...
0
votes
0answers
19 views

Piped processes in upstart shell script continue running after stopping

I have an upstart script on my CentOS box that runs a shell script. The shell script runs a netcat command whose output is piped through a couple other commands and then ends up in a file. When I ...
-1
votes
0answers
32 views

Hostednetwork on win7

so, I have prepared a script that creates a hostednetwork on my laptop. it creates network itself, activates ICS but I don't know how to select my wireless network connection for sharing using that ...
0
votes
0answers
28 views

How to create a script to intelligently .zip numbered files?

I have a directory with a bunch of files with numbered file names (e.g., 002361). I'd like to write a script to regularly .zip them (or .rar, or .7z) based on their file names AND only update the ...
3
votes
1answer
3k views

Install a Teamviewer host silently with custom password

Our company has the custom Teamviewer hosts that we can run silently with the /S switch. The issue is that we can't connect due to it not setting a password that we know. Does anyone have any thoughts ...
0
votes
1answer
44 views

ahk script tweak for 2 instances

I’m trying to create two different hotkeys that launch two independent instances of an application. When the second one is open a “[2]” is added to the title of the Window, which is very useful to me. ...
0
votes
1answer
36 views

ahk WinMove not working in a faster machine

is it possible that in a faster machine AHK WinMove feature does not working and needs something else? I'm positive that the same script works in other slower computers, that means arrange my screens ...
0
votes
1answer
3k 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
43 views

Automate Update with script ( Flash, Java, Reader )

I'm deploying over 10-20 computers every week and have to update each computer manually. Is there a script that I could use that: Checks-Version, Downloads-New-Version, Updates-New-Version. I ...
1
vote
1answer
5k views

Calling PowerShell functions in another scripts

I have a script with a number of functions (not just functions but also other code). I would like to create another script that uses one of the functions in the main script. Here is a sample of what ...
4
votes
1answer
63 views

Can I create a “file” that, when opened, actually gives the output of a command?

I've found myself in a couple of situations now where I'd like to have such a "file" that essentially runs a script whenever it's "opened", allowing me to "read" it's output. For example, I might ...
1
vote
2answers
3k views

How to auto commit to my git repository using cron?

I look into a lot of answers about this subject, but something is wrong here, let me explain. I create this script, to make my cron cleaner :) #!/bin/bash cd ...
0
votes
1answer
4k views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
1
vote
3answers
62 views

How can I run a Python 3 script?

I want to run a Python 3 script. I have looked in the official doc and FAQ, and they are the typical loss. I was looking for answers, I ended up with more questions. I have Windows and Linux. On ...
15
votes
6answers
38k views

Automatically run a script when I log on to Windows

How can I automatically run a script when I log on to Windows? I'd like to run this whenever I log into my computer: echo %USERNAME% logged on at %DATE% %TIME% >> log.txt A bonus would be to ...
0
votes
0answers
10 views

How can a Nautilus script be run for an empty directory?

I have a Nautilus script that can create multiple directories at once using mkdir with the option -p. The script is effectively the following: directoryStructure="$(zenity --title "make directory ...
0
votes
0answers
128 views

disable chrome task manager? alternatively: prevent extensions from being killed

I have installed the chrome extension "Stayfocusd" which blocks websites for a certain amount of time. However, I have noticed a way to get around this. If you go to Chrome Task Manager and kill the ...
4
votes
1answer
187 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 ...
2
votes
2answers
3k views

Unable to remove network printers via script in Windows 7

I've tried removing several network printers via rundll32 printui.dll, PrintUIEntry /dn /dd /q /n \\SERVER\PRINTER also tried the /dl but nada and WSHNetwork.RemovePrinterConnection ...
0
votes
0answers
30 views

Run an interactive script with administrator privileges, before user login

Windows 7. I have a script which mount a TrueCrypt partition and share it across a LAN. Because this script must run with administrator (at least power user) privileges, I place it in gpedit.msc -> ...
1
vote
1answer
33 views

BASH Script: Why Do My Variables Not Work

I'm trying to use some script variables in a BASH script to my code more clear. However, for some reason, my variables are not being expanded/uses. Nothing simply happens when I use the variable to ...
36
votes
11answers
5k views

How can I delete everything after the first column in Notepad++?

I'm trying to get rid of everything after a column in Notepad++. Column mode is not an option. Is it possible? What I have: 70.97.110.40 159 ms [n/a] 21 ...
1
vote
1answer
25 views

BinScope and ArgumentException: Illegal characters in path

I'm catching a System.ArgumentException: Illegal characters in path when trying to script BinScope from the command line. BinScope is an SDLC audit tool from Microsoft, and the full output is below. ...
0
votes
3answers
37 views

Automating User Input / KeyStroke For a Program

I've read about this problem on related posts found here at Superuser; however, my issue is slightly different and potentially difficult to solve: I am working with a phylogenetic program called ...
0
votes
0answers
20 views

Allow Tampermonkey scripts in ScriptSafe in Chrome

I am using Google Chrome with Tampermonkey and ScriptSafe extensions. ScriptSafe blocks all the scrpts installed in Tampermonkey. I am wondering if there is anyway to make ScriptSafe to allow ...
-2
votes
3answers
426 views

Bash- How to make a Linux script file human unreadable? [closed]

I have seen many Linux scripts that are executable but cannot be read as they are in binary format. My question is how I can make my script not readable/binary format?
0
votes
1answer
64 views

Batch script to mass rename by modify date

I'm trying to make a batch script to mass rename files by modify date and time of each file. I'm new at this and searching since this morning and nothing lead me in the good way. SHould I use xcopy, ...
1
vote
1answer
25 views

How can I create a script to randomly play an audio file in a designated folder?

I'm attempting to use VoiceAttack to give a voice command to play a song. I'm looking to create a script to randomly play a .mp3 file from a specific folder. I'm on Windows 8.1 My scripting ...
1
vote
3answers
12k views

How can I run a command after boot?

I would like to run the simple shell command echo 1 > /proc/sys/kernel/sysrq at each boot, to enable the sysrq keys. When in boot should this be done, and where should I put a script to do it?
11
votes
6answers
2k views

A script so that you don't forget your usb drive on a public computer

So I have a problem because I'm an idiot. I seem to always leave my usb drives in public computers at school and the like. I unmount them and log off leaving them still in the pc, and of course I then ...
0
votes
0answers
39 views

How can I run a Rails server when I start Ubuntu?

I need to run this command cd /my/app/path&&rails s every time I start my Ubuntu virtual machine. I've tried to add it to /etc/rc.local file and also in /etc/init.d/rc.local but it ...
0
votes
1answer
40 views

Powershell script to open random video

I was looking for a way to open random video file in my folder which has about 400 videos (20 videos in 20 subfolders). I found a powershell script and managed it to work, but every time I run it I ...