The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
0answers
12 views

Command prompt not able to run my exe in production server

I have an exe application which will watermark autocad drawings. I tested that in my test environment from cmd it is working fine. But in my production server its not working when I run from command ...
0
votes
1answer
44 views

ipconfig.exe is crashing when run from the windows (7) command prompt

I am trying to use ipconfig, but everytime I enter the command in the windows command prompt, I get the crash dialog saying, "The IP configuration utility has stopped working", with the reason saying ...
2
votes
1answer
113 views

Invoke Windows password dialog when using NET USE

I'll try to get to the point. Using Run from the start menu to an un-authenticated machine: \\hostname\share gives me the Windows prompt for password, good. Running %systemroot%\explorer.exe ...
0
votes
1answer
64 views

Escape variables in command prompt cmd

I set my variable like this: SET Ant="%HOMEDRIVE%%HOMEPATH%\Downloads\apache-ant-1.9.0-bin\apache-ant-1.9.0\bin" :: Set Path variable setx PATH "%Ant%" /m Then, the result for the path variable ...
6
votes
5answers
4k views

Different color prompts for different machines when using terminal/ssh?

I have 5 machines I constantly ssh into to do work. Its getting increasingly frustrating when I am issuing wrong commands on wrong boxes. Luckily I havent done anything bad yet. I wanted to know if ...
1
vote
4answers
1k views

How to convert a elevated command prompt to a regular command prompt?

I have UAC disabled on my system, and all command prompts start as elevated ("Administrator: ..."). Even if I start cmd.exe from the Start Menu, it's still elevated. Is there a way to run a ...
-1
votes
1answer
50 views

creating a drive (letter) that is a link to a folder [closed]

on my home pc I want to simplify things when it falls to accessing my home folder, so I would like to make my c:\Users\myusername folder pointing to a virtual drive created ad-hoc, such as Y:. In this ...
0
votes
1answer
73 views

How to display the first 50 lines of a command output in Windows? (the equivalent of Unix command “head”)

I need to display the first 50 lines of the output of a command (any command). In other words, I essentially want an equivalent of the Unix "head" command. but I dont have permission to create file ...
7
votes
2answers
6k views

How to display the first N lines of a command output in Windows? (the equivalent of Unix command “head”)

I need to display the first N lines of the output of a command (any command). In other words, I esentially want an equivalent of the Unix "head" command. After discovering a few tricks from some other ...
4
votes
1answer
40 views

Windows 2k8 R2 - What is the UserDN belongs to 1 OU that inside the other OU?

I would like to know what is the UserDN (User Distinquished Name) for a user belongs to 1 OU, but that OU also belongs to the other OU. UserDN for the first OU: "CN=George ...
2
votes
2answers
103 views

Backgrounding Command Prompt and Running at Login for Domain Users

Intro I have a Topaz eSignature pad that I have connected to a fat client PC to sign reports inside of a terminal session running on a remote server. I have it working so it will sign the reports on ...
2
votes
9answers
5k views

Command window missing default 8x12 font

Installation: Windows Server 2008 R2 Remote Desktop Service role When I logon locally my command window (cmd.exe) displays with default font that is 8x12. But when I logon remotely and open ...
7
votes
2answers
8k views

Windows Server 2012 GUI went missing after removing Active Directory

I'm sorry but i'm stuck in figuring out a problem i'm facing here. I removed the AD feature from server manager and after rebooting, my server 2012 gui wasn't there anymore. There's only command ...
-1
votes
1answer
20 views

Ubuntu server trouble with command-line prompts

I bought VPS with ubuntu 12.04 server minimal. When I logged in, there is very simple command line by default. How install full-function command-line with prompt and etc?
0
votes
1answer
53 views

rdiff-backup -r is not working with QT

I am using rdiff-backup to get previous version of the files from server with this command: rdiff-backup --no-hard-links --force -r "DATE" "USERNAME@IP::SERVER PATH" "CLIENT PATH" I can do this ...
5
votes
11answers
56k views

Windows command prompt: how to get the count of all files in current directory?

What command would you use in cmd.exe to find the number of files in the current directory? Is there a powershell option here? Update: I was hoping to avoid dir, as I know there are 10,000+ files in ...
1
vote
2answers
2k views

Specifying date in robocopy destination folder

I would like to specify the date via CLI when running robocopy so that the destination folder includes the date. robocopy C:\folder\ Z:\folder_DATE /E /ZB /COPYALL /NP /V /LOG:F:\backup_log.txt ...
0
votes
1answer
290 views

How should I resolve “-bash: promptpath: command not found”?

My Turnkeylinux machine uses the following PS1 environment variable for bash prompt: PS1="${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\h \[\033[01;34m\]$(promptpath)\[\033[00m\]\$" I plugged ...
0
votes
1answer
74 views

VPN Server on Windows server 2003 with command

Is there any way to create VPN Server using command line on Windows server 2003 ?
9
votes
4answers
3k views

How can I tell if Windows is running in Safe Mode?

I have a Windows server that will sometimes reboot into safe mode after updates. I'm working on that issue but what I'd really like to know is how can I check to see if Windows is running in safe mode ...
4
votes
3answers
2k views

Open Elevated “Administrator:” cmd prompt instead of “cmd prompt (Running as Administrator)”

If you open a command prompt with a runas command, you will see a window that shows (Running as some_user) In the title bar, but if you right click on cmd.exe and choose Run as Administrator you ...
-3
votes
2answers
245 views

Scroll up while in screen

When I use screen command, I am not able to use page-up and only 1 page is displayed on the screen. If I do not use "screen" command, I can scroll up a few pages. 1) How do I enable scrolling while ...
0
votes
1answer
286 views

Issue with Prompts when SSH from Tmux to Remote Host

I have a Tmux session running locally, in one of the panes I ssh to another host, however once the remote machine is logged in, the cursor is overwriting the command prompt. I think this is happening ...
0
votes
2answers
41 views

Is there a way to log commands that a user runs in Windows 7?

I manage a large enterprise environment, and while we try to advise users not to, there are inevitably users that need to have local admin access to their machines. The problem is that some of these ...
2
votes
3answers
379 views

What's wrong with this bash prompt?

I use the following entry in ~/.bashrc file to colorize the prompt and display current branch of git repository: PS1='\[\e[1;32m\]\[\u@\h\]\[\e[m\] \[\w\]\[\e[1;1m\]\[$(__git_ps1 " (%s)")\] ...
0
votes
2answers
4k views

Automatically capture the output of poolmon

I'm hunting of a memory pool leak using poolmon. In the KB article, they explain how to capture the output manually using cut&paste. Isn't there a way to automate this? Since the tool doesn't ...
1
vote
2answers
119 views

How can I customize the command prompt when your effective gid does not match your uid?

We frequently sg to switch to a "shared" effective group. I want a visible reminder that we are not using our default group. Was thinking of having the bash prompt change color or display the ...
0
votes
1answer
64 views

Is it possible to launch the Windows command prompt from Management Console?

I've googled for this quite a bit - I have a custom MMC setup at work that gives me quick access to everything I need, including various web-based admin consoles. The one thing I can't seem to do is ...
3
votes
1answer
864 views

How to create a Windows 2008 Advanced Firewall rules group definition through the command prompt

Is there a way to create a group, or add to an existing group, to a rule in Windows Advanced Firewall (preferable through a command prompt or WSH script). Edit:
0
votes
2answers
2k views

PSExec “access is denied” on WS '03?

I'm trying to execute commands to a remote server offsite and PSExec for some reason is not working. C:\> psexec \\LOC-Server -u AdminUser -p AdminPW cmd This won't even let me run command ...
1
vote
2answers
443 views

Disk Space discrepancy SMB vs command prompt

We have a Windows 2008 server core installation that has a 400GB disk attached to it. When viewing the free space of this disk via the command prompt it reports 35GB free. Computer management also ...
2
votes
2answers
340 views

Why does Windows command prompt stalls until a key is pressed when executing long batch files or programs

I've just had two occurrences of windows 7 stalling an execution until I hit enter on the command prompt/powershell. Afterward execution seems to continue as expected. First was an batch file of copy ...
0
votes
2answers
537 views

wsname logfile to a filename using mac address or hostname

I am using wsname to rename workstations as they are deployed. i have a \logfile switch which changes the default location of the wsname logfile to a folder on the C drive. I want to change this to a ...
2
votes
1answer
80 views

I'm having trouble finding these commands to run in a batch file?

I want a batch file to pull information from the first line of a text file (notepad), use that information to add information to a DNS server, and then delete it. I'm thinking if I create a loop, I ...
6
votes
2answers
3k views

Environment Variables in PATH Not Expanded for non-Admin Command Prompt?

I have a Windows 7 machine which, when Command Prompt is run by a normal user, fails to expand environment variables in the %PATH%. If command prompt is instead run as administrator (right click, Run ...
3
votes
2answers
378 views

screen not dropping down a line?

Minor annoyance with the Screen linux utility; when connected to a Linux (Fedora) box from my Mac (using Terminal), when I'm writing out a long command, usually when the text reaches the edge of the ...
0
votes
1answer
247 views

How to re-save web.config using command prompt

I'm using a simple cmd batch file to deploy my Asp.net MVC web application to server network share. The problem I'm having is that my DLLs can't be simply replaced by new files since existing ones ...
0
votes
3answers
1k views

Change data path for PostgreSQL

I run PostgreSQL as a Service. In Administration - Services, I can see the following path "C:\Program Files\PostgreSQL\8.4.3-3.1C\bin\pg_ctl.exe" runservice -w -N "pgsql-8.4.3-3.1C" -D "C:\Program ...
6
votes
2answers
1k views

Terminal only shows $?

I recently set up a new user using "adduser username" on my server and noticed that when I login I get: $ Also, with my new user there is no folder highlighting, or tab completion. However when I ...
0
votes
2answers
109 views

How do I set the PATH environment variable to point to JRE version 1.5

Hi there I have a program that requires me to set the PATH environment variable to point to JRE version 1.5 as I need to access the program via a command prompt. So any ideas on how to do that?
2
votes
2answers
312 views

Know of a trick to sustain quiet ssh connections from firewall auto-disconnects?

Our enterprise firewall is configured to disconnect ssh connections after 30 minutes of of inactivity. Sometimes, I need to perform an operation on a server that requires a sustained connection ...
0
votes
1answer
310 views

Unlock Windows XP for Command Prompt (and other admin feature)

I have the admin access to a Win XP machine, I want to setup that as a public kiosk and so I go to group policy to disable all Command Prompt, Control panel etc. The problem is, even I have admin ...
1
vote
1answer
261 views

Change Command Prompt Hostname

How can I change the hostname that is in the command prompt. I have [root@domU-12-31-19-93-37-71 ~]# ls Can I change to [root@jasonvaritek ~]# ls
1
vote
1answer
416 views

Command Prompt - see who is on network [closed]

Using Command Prompt... can you see all of the users who are logged on a network?
0
votes
1answer
86 views

Show command prompt on reboot

In one of my linux machines, when i give reboot command at the shell command prompt then press enter, i get another command prompt and then the system reboots. $reboot $ But in one of my office ...
0
votes
2answers
1k views

Escape TAB in cmd.exe?

I need to pass a tab character into a program from the command-line on Windows. eg: grep "foo<TAB>bar" filename However, cmd.exe's auto-completion gets in the way. On Unix, you can hit Ctrl-V ...
7
votes
2answers
2k views

Weird symbols always appearing in command line (putty / zsh)

I've had this problem for a while and I hope it's a pretty easy fix: In various places, I'll see weird symbols appearing in the command line. Such as 'â'. It seems like it's replacing some other ...
2
votes
2answers
175 views

Ubuntu server: lost prompt on monitor

I am running Ubuntu 9.04 server edition. I have a monitor plugged into the box for occasional admin tasks. I pulled out a USB disk (without unmounting) and the screen is now full with this message: ...
0
votes
1answer
429 views

Telnet session - can't run commands

I have 2 VMs running CentOS 5.0 and I configured telnet on both of them. I can telnet from one to another... but when I type ls or cd at the prompt I get a message like this -bash: ls: command not ...
2
votes
2answers
1k views

Batch file to call multiple batch files and keep going after errors

I have a batch file like this, the issue that I have is that if the first batch file fails, the second one never gets started, how can I get them to both keep going? @echo off MapNetworkDrive_J.cmd ...