0
votes
0answers
4 views

Appending filename and path in Batch file

I'm having a hard time learning how to use command lines and the using batch files. What I want to do is write a custom path and then add the filename so that the output could be saved there. This ...
0
votes
0answers
10 views

Take Command (command prompt replacement): Frozen session tab with “ERROR: The file is either empty or does not contain the valid choices.”

UPDATE: I can faithfully reproduce this error with a minimal Ant build. Check out this video. The two files are pasted at the bottom of this question post. As posted on the Take Command forum, I am ...
1
vote
1answer
42 views

Color blindness and Windows command prompt

I have a very hard time reading red letters on a black background, a combination that is used frequently by several command line tools that I use on windows. I can remove the colored output by ...
0
votes
1answer
29 views

Writing time in a file in a for loop

In windows 2008: I'm trying to zip and copy files to a backup server. I use command line/batch file, I log the result in a log file, I now want to log also the time for each file looped. The ...
0
votes
1answer
20 views

Batch Issue - Creating folders and Moving Documents

I’m trying to create a batch script in Windows 7 that will look at the first 6 numbers of 100s of pdf, create a folder based on the 6 unique numbers and move the pdfs into their respected folders. ...
1
vote
0answers
10 views

get output from cmdline application independently of system's locale

I'm trying to get the full OS-version information of a w32 host in a script (thus: from the cmdline), to be run on a variety of different machines. For this, i'm using the systeminfo as described ...
0
votes
2answers
29 views

Repairing HDD - help to command prompt

I've dropped and destroyed my HDD with family stuff and so on aboard, and I read online, that I should just use /R /F /X D: in commandprompt, runned as administrator. I did that, and this is my ...
2
votes
1answer
18 views

Does anyone knows how to delete a sub-directory in a source directory that does not exist in the destination directory using windows command prompt?

I am trying to create .bat file that syncs files and folders and so far I got up to this: xcopy "C:\Users\user pc\Google Drive" "J:\Google drive offline backup" /d /e /f /h /i /j /k /r /s /y /z for ...
1
vote
0answers
30 views

How to stop previous command proccess?

I moderate my windows server remotely by command line. Once I wrote: "netstat -an" It showed up the results normally, but after this command, when I write any command it displays the results of ...
1
vote
2answers
58 views

Batch command for Searching & Replacing Text in a Text containing non-TXT file

I am working with iMacro JavaScript .js files which are simple unencrypted lines of code-like text. The file contains the following code: var i; for (i = 1; i <= 10; i++) { iimSet("loop", i); ...
-1
votes
2answers
39 views

how to start a program with command line arguments on windows cmd

i know there are a couple of questions similar to this one out there but and while i have browsed through them, none have been able to resolve my problem. My code takes in three strings as parameters ...
0
votes
2answers
25 views

How to enable Remote Assistance and add an exception for it in Windows Firewall from the command line?

I need to enable Remote Assistance from the command line. The equivalent of checking this box and hitting Apply. This is for automation and I tried editing the registry entry ...
1
vote
0answers
34 views

Why copy-paste in Windows command-line tools is usually cumbersome

I've used the command prompt, cygwin, mobaxterm in Windows. Although they do support copy-paste, the operation is usually not that straightforward. The selection of the text in the command prompt is ...
0
votes
2answers
21 views

Not process a variable in a string immediately in batch script

I'd like to know if it's possible to process a variable containing a variable not immediately but only when asked. For example this batch: @echo off setlocal EnableDelayedExpansion set VA=Two set ...
1
vote
2answers
36 views

Search-and-go in Windows CMD

I know that for file search on Windows CMD one can use the following command: dir /S /P "PATH/FILENAME" Is there an easy way to go straight to the result directory. For example, the requested file ...
1
vote
0answers
24 views

.exe files wont close with task manager or command prompt - Windows 7

This is happening with my video game DayZ StandAlone and Google Chrome Browser and a few other programs. But I will close the program normally and it will appear closed until I check Task Manager. (I ...
0
votes
1answer
25 views

Using PowerShell to Close Firewall Port

I'm doing some end to end testing of an application and I need to be able to close then open a port in Windows Firewall using PowerShell commands. I've found a script that adds a firewall rule to open ...
1
vote
2answers
84 views

Remove attributes to sub folders and files

i hide my folders and files through hidden attributes of command prompt,i am struggling to unhidden all sub folders and files, how i hide the files in command prompt attrib +s +h "foldername" ...
0
votes
0answers
17 views

Copying files to multiple folders and subfolders - command line

I have a folder with files that I do need to copy in multiple folders and subfolders. The folders and subfolders are not created. For example I want to move test1.txt to folder1/subfolder1 ...
11
votes
2answers
836 views

What does the output from CTRL+N in Windows Command Prompt mean?

In the Microsoft Windows Command Prompt (Win7), what does the command Ctrl+N do? I get the following output: C:\Users\pbarney>^N '' ␋_ ┼¯├ _␊␌¯±┼␋≥␊␍ ▒_ ▒┼ ␋┼├␊_┼▒┌ ¯_ ␊│├␊_┼▒┌ ␌¯└└▒┼␍, ¯▬␊_▒␉┌␊ ...
1
vote
0answers
13 views

How to switch between DNS suffixes using CMD (netshell)?

at my job, I have to manually switch between: 1) append primary and connection specific DNS suffixes and 2) Append parent suffixes of the primary DNS suffix a bunch of times per day (due to a ...
-2
votes
1answer
34 views

Loop Counter not working

@echo off setlocal enableextensions enabledelayedexpansion set /a eng_aud_count=0 set /a eng_sub_count=0 For /f "tokens=1-9 usebackq delims=.:^)^( skip=2" %%A in ("MY text File") do ( set trck=%%B ...
1
vote
1answer
54 views

Windows theme resets everytime computer is restarted after registry modification?

I had gotten bored one day and changed the colors/fonts of the command prompt, then finally i wanted to, undo this and change the color/font scheme of the windows command prompt cmd.exe back to the ...
0
votes
2answers
35 views

CMD Command - Timer to acess a website

Anyone knows if its possible to add a timer do this command? I want to access a certain website in my default browser minutes after typing. start "" "http://superuser.com/" This worked but it ...
0
votes
1answer
26 views

Batch script to only run command for 1 machine

I have a Windows GPO that runs a batch file startup script to disable NetBIOS. It normally looks like this: wmic nicconfig where (TcpipNetbiosOptions!=null and TcpipNetbiosOptions!=2) call ...
0
votes
1answer
28 views

CMD file for redirection of child process output

I need a batch file that receives two parameters: a command (filename with some arguments) and a path to a file - for output redirection of the command execution. I tried some variants like call %1 ...
1
vote
0answers
20 views

I copied a folder with copy&paste instead of 'xcopy'. How to fix that?

I copied a folder (Windows Server 2003) with copy-paste instead of 'xcopy' or 'robocopy'. Now I lost the original permissions, and I can't re-do the copy process (can't access the original folder). ...
1
vote
2answers
45 views

Equivalent of (foo &>/dev/null &) in Windows shell

I'd like to run a particular application (let's call it foo) from the command line, but I don't want it holding up the terminal, putting any junk in the terminal from its output or error streams, and ...
1
vote
0answers
34 views

Working git from the command line

So I use Github for Windows (that fancy GUI app) to manage my various git-based projects, but I've noticed that on my machine I can't use the command line git to do anything with my projects. From the ...
0
votes
0answers
60 views

Windows Server 2012 Can't Delete Folder/Files

I've got a folder with two ISO files in it and I don't need them anymore, however I can't delete the folder! I am an administrator and also the owner of the files. When I try and delete using windows ...
1
vote
2answers
26 views

Start application from a numbered list of choices

I want to display all applications dynamically within a folder in a numbered list, and launch them by entering the number associated with the application. So far I have the easy part working, the ...
0
votes
2answers
44 views

curl: pass a GET request as argument

Heroku has this nice command which allows me to use curl to download a file which works fine in UNIX: curl -o latest.dump `heroku pgbackups:url` The command in backticks yields a very long URL that ...
0
votes
1answer
39 views

Recover file overwritten with >

I was copy/pasting some commands into CMD (Windows 7) and accidentally pasted in an entire cmd history (from the Select All command). This included something along the lines of Y:/>database.mdb ...
0
votes
0answers
24 views

How to create Windows service with %computername% in command?

The command: sc create my-service binPath= "\\192.168.0.4\myshare\myfolder\myapp.exe --log \\192.168.0.4\myshare\myfolder\logs\%computername%.log" DisplayName= "My App" start= auto depend= ...
-3
votes
1answer
45 views

Access c:\“ my path ” in windows command prompt

I want to access a path in C drive when I open the command prompt I have c:\user\myname where is I want to access c:\ so that I can access any paht I want in C
0
votes
1answer
44 views

Using a .bat file to pull a string from a text file within a zip folder

So, please bear with me. This is only the second batch file I've ever written and my first post anywhere on StackExchange. I'm writing a batch file that tells a remote server to run HP Array ...
1
vote
1answer
25 views

How can I get IP/host using windows commandline?

nslooup something.com 127.0.0.1 nslooup 10.20.30.40 127.0.0.1 will send a query to 127.0.0.1 UDP 53. I want to use "127.0.0.1:545/UDP" as a DNS resolver. Is there any good commandline tool(Open ...
25
votes
9answers
3k views

How can I pipe console output directly to Notepad?

I'm running an application on the command prompt or a Git shell, and I would like to get the output into Notepad, for easier review and editing later on. I tried the following, but I always get an ...
1
vote
0answers
33 views

What Would I Call This? [closed]

When I'm working on a web development project or tutorial, I generally open the same applications, just with different files. I wrote a batch file for my current project, so I can open these with one ...
-1
votes
1answer
46 views

What comand do I enter into my batch file to do this?

I want my batch file to find a string in a file and return it to the next line in my batch file. How can I do this? I've googled over and over but can't get the specific answer I need with the ...
-2
votes
1answer
24 views

Command to find a file in a directory in widows [closed]

I like to find a file xyz.properties in my project. I like to know which command is useful for this. The same file name is exisiting in multiple folders in the project directory.
0
votes
1answer
23 views

CMD FTP Issues Works on Server 2012, Not on Win 7

I have the below command script running as a scheduled task on my Win 2012 Server without any issues. I want to replicate this on a clients Win 7 x64 computer. echo user [username]>> ...
0
votes
1answer
15 views

Running hstart from MSYS

I'm trying to automate some things on my computer. And here's what I ran into. I'm running this command from MSYS prompt: hstart /elevate "cmd /k netstat -anb" First a message box with title ...
0
votes
0answers
25 views

Can I directly specify the file name for fsquirt.exe and have it sent instantly?

Because modern mobile phones do not seem to work with my bluetooth software as Nokia did, I'm using microsoft's fsquirt.exe utility. I had tried to upgrade my notebook's bluetooth software but most ...
0
votes
2answers
42 views

Keep program in cmd

I have a little program that is designed as Win32 GUI. It doesn't open cmd by default, however, it prints some important data to stdout. I wan't to get that data, so I tried to execute it directly ...
0
votes
1answer
27 views

windows command prompt dir /q returns “…” as owner - what is that?

I am executing dir /q on a Windows server 2008r2 and what I get back for one of the folders is ... What does it mean? 2014-06-11 16:32 <KAT> ... AFolder 2014-06-03 ...
0
votes
1answer
13 views

Recursively compare file identities in Windows environment using only standard Windows commandline tools

I want to ensure that deep directories of files are identical after copying. I've read this answer: http://superuser.com/a/414216/214579 However, neither fc or comp offer recursion. How would one ...
0
votes
2answers
85 views

How do I concatenate files using a list and batch?

I need the equivalent of the shell command xargs < list.txt cat -- > compiled.txt as a Windows batch file. There is a directory full of text files (about 50 to 500 files) that I need to ...
0
votes
1answer
47 views

Lowercase L key does not work in cygwin terminal

This is probably the weirdest software problem I have ever come across. When I press L key in cygwin command line I see no reaction whatsoever. All other buttons on the keyboard work perfectly. In ...
0
votes
0answers
56 views

Run schedule task while logged off using command line on local machine under windows7

I'm tryig to run this batch file: schtasks /create /SC once /ST 23:00 /tn "batch2" /tr "c:\windows\system32\schtasks.exe /run /TN "Acronis\backup_to_disk2" /ru "WORKGROUP\Tps02-PC$" rl/ highest ...