0
votes
1answer
44 views

How to call a Windows Environment Variable in a Shell script?

It is possible to call Windows Environment Variables in a bat script by defining e.g. %JAVA_HOME%. It looks like this is not possible using CygWin and shell scripts. Is it possible to call Windows ...
1
vote
1answer
83 views

Windows command-line: Fastest way to disable internet (keeping LAN)?

Split question: this other one here is for Linux. I think the easiest way to deactivate internet (not LAN) in Windows command-line is to remove the default gateway, so, assuming LAN is ...
0
votes
1answer
69 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 ...
1
vote
2answers
914 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
2answers
212 views

Filling up the hard drive until certain amount of space is left?

I'm doing some testing of a product on Apple and Android devices. I'd like a script that will fill up the devices hard drive until 100KB space is left on the drive it's runs against to. Also in linux ...
-3
votes
1answer
559 views

batch move/cut folders and its content to another folder

I have this batch script that allows me to copy folders and its content from a text file, could someone help me adjust it so it move/cut the folders+content and not just copy? set ...
0
votes
1answer
986 views

Move all files from multiple level sub folders to 2nd level subfolder

I'm looking for windows command or batch script to help me, i Spent 3h reading/ trying to find a solution i know its out there but my lack of scripting/programming isn't helping, hoping some can help ...
1
vote
1answer
330 views

For Windows systems, will “.bat” or “.cmd” extension make any difference for my script?

Assuming that my shell script is entirely based on DOS commands(dir, cd, etc and not VBS or PowerShell commands), using .cmd or .bat extension for it's name will change something? I mean, it will be ...
1
vote
1answer
407 views

How can I check through command-line the computer form(Desktop, notebook or All-in-one)?

For a very specific reason I need to check the computer form factor(Desktop, Notebook or All-in-one) remotelly, using a command through the command-prompt, powershell or vbs(Windows 7/8 systems). ...
2
votes
2answers
98 views

Creating unique template HTML files for all MP4 files in a directory

I've prepared a number of video files that will each have their own HTML page. (I'm making a series of lecture videos and trying to keep things simple since I'm a chemist, not a coder.) I'd like ...
0
votes
1answer
1k views

Get USB key manufacturer serial number

I am looking for a batch command to retrieve an USB key manufacturer serial number. I need a command that works in both Windows XP and Windows Seven. This is for a hardware follow-up. I have a script ...
-1
votes
1answer
28 views

How to perform zipped mirroring on Windows?

My source is a directory hierarchy. I need to auto-copy the files in the source to a destination directory, but to have each file individually zipped inside the destination sub-directories. ...
3
votes
2answers
2k views

How to add commands of windows to local shell of XShell 4

XShell is a very powerful tools to ssh remote computers such as Unix/Linux. And it has built some internal commands for you to run within your Windows. Xshell:\> help Internal Commands: new: ...
0
votes
3answers
654 views

Need help creating a batch file to replace “.” with “-”

Like the title says, I need help creating a batch file to replace "." with "-", however I need to perserve the file extensions and it needs to work through the subfolders. I found another post on here ...
1
vote
0answers
36 views

Scripting the way firefox starts

In Windows 7, is there any way to script the websites that are opened whenever I open Firefox based on certain criteria? For example, if it's Thursday, load a certain website as my homepage, but only ...
1
vote
1answer
1k views

Batch file equivalent in Linux

I have a few basic commands that I need to run on a Red Hat Linux 5 Virtual Machine with GNOME to start a couple servers. Example cd /home/user/scripts sh runTHISthing.sh pub cd /home/user/logs ...
7
votes
4answers
788 views

Looking for a regular expression to work on a list of comma separated values

I have line of 3 long numbers separated by comma. What I want to do is to delete the number in the middle, and leave only first number and last number separated by a comma. Currently: ...
0
votes
1answer
433 views

How to Unzip files recursively in Linux / DOS

I have a zipped folder which contains thousands of zipped folders contained in itself and that goes down the hierarchy, I have to unzip each and every file and place it in a single folder. This task ...
0
votes
1answer
721 views

How to remove blank lines in .txt files

I want to change a text file's format, removing all blank lines. How can I do that? (2) 5. The function of the condenser is to: a) vapourise the liquid refrigerant b) change ...
0
votes
3answers
239 views

Windows batch command equivalent for these PHP and Bash commands

What are the equivalent commands in Windows if I have these commands in Linux? if (!is_dir('geoip')) mkdir('geoip', 0744); shell_exec('unzip -oj GeoLiteCity.zip -d geoip/'); shell_exec('rm -rf ...
0
votes
1answer
76 views

Batch script for creating tasks?

Is there a way to create a batch script to add tasks to the Windows Task system? I need to setup 2-3 tasks per system but I want to be able to run a script to do it.
0
votes
3answers
110 views

Process plain text data

I've this plain text file that I need to be automatically examined and results written in another plain text file. Note that I'll use plain text and CSV interchangeably, since CSVs are plain text ...
1
vote
3answers
3k views

shortcut for opening cmd.exe at a certain location

How can I create an icon\shortcut to a script that opens cmd.exe command prompt at a certain location on a certain drive under Win7?
7
votes
7answers
57k views

How can I run a shell script in Windows?

I'm a Mac user and new to Windows. How can I execute a shell script in Windows? Generally, I would save the text file with the extension .sh and run it via Terminal. But how could I do that in ...
3
votes
1answer
478 views

Custom multi-item context-menu entry for Windows Explorer

I'm trying to create a custom context-menu entry for Windows (7) Explorer that will send ALL selected items ton ONE single command. I've read about MultiSelectModel with a Player value in MSDN Doc ...
0
votes
1answer
459 views

Command line solution for removing parts from a binary file?

I have a binary file and I would like to remove parts from. By removing I mean deleting those parts and thus making the file's size smaller. The parts would be between two ASCII strings. So, for ...
1
vote
2answers
13k views

How to execute shell script in cygwin?

I store name.sh under C:\Documents and Settings\user when i type sh name.sh in Cygwin, sh: testing.sh: No such file or directory any help will be appreciated!
18
votes
10answers
175k views

How to execute .sh file on Windows?

When I am trying to execute a file(name.sh) in the command line by the command ./name.sh , I am getting the error that: "." is not recognized as an internal or external command, operable or ...
-1
votes
6answers
3k views

let me know alternate command in DOS for following unix command

find /coe/informatica/v712_OMJ/AONE/SrcFiles/Archive -name *AccessOne_DF_BIFs.txt|cut -f8 -d "/"|cut -c 1-12 > ...