Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
54 views

How to find out the .exe running behind a service with cmd.exe?

If I see svchost.exe having the PID 840, how do I get the information which .exe runs behind the service with cmd.exe on Windows Server 2003? If possible without Sysinternals tools.
0
votes
1answer
29 views

How to check which roles are installed on a Windows Server 2003 with cmd.exe?

If I log into a Windows Server 2003 and I want to check with cmd.exe which roles are installed, how to do that?
0
votes
0answers
47 views

Run net use in the service desktop

What is the easiest way to run a process in the service desktop? I'm trying to run net use. I've tried PsExec but I'm not entirely sure it is doing what I want it to. psexec -s net use ...
1
vote
1answer
67 views

Using “sc” command to control services with whitespace in name

I need to stop service on remote machine. The problem is that service name contains whitespaces, and I get a message, that such service does not exist. sc \\machine stop "service name" How can I ...
1
vote
3answers
110 views

How do I set an environmental variable from a powershell command?

I want to have a environment variable that contains the day of week in cmd.exe. When I run this command I get the result I want. C:\Users\tisc>powershell (get-date).dayofweek Friday Here I'm ...
1
vote
5answers
113 views

remotely check amount of RAM on a computer using command line

How would I remotely check the amount of RAM on a computer using command line? (Windows XP and/or windows server 2003)
2
votes
2answers
240 views

How to Run multiple command remotely using PSEXEC?

I am try to use multiple command with psexec tools but i am only remotely entered in that computer but it won't be perform another command psexec -i \\192.168.30.135 -u username -p password cmd ...
1
vote
3answers
82 views

Equivalent linux command of “net start” command in windows

On Windows a command like net start mysql will try to start the MySQL service. I am looking for equivalent Linux command to do that - to change the status of services through Linux commands.
0
votes
1answer
96 views

Ping returns “ip no resources”

One of my clients networks keeps losing connectivity, either the network or the PC they are trying to connect to. I am running a ping from the PC to the router which runs fine most of the time and ...
1
vote
1answer
60 views

Zip for Windows Server 2008 command line?

I know that this has been asked before, but I have not found an answer for Windows Server 2008. Most references I found are with the Windows Server 2003 Resource Kit, but not for 2008. I know that ...
0
votes
2answers
49 views

how can i switch to another user in mysql via cmd

hello everyone i'm try very hard to switch to other user created by me with password but i am not able to switch it, i've searched on google but i don't know what type of error is it it says access ...
-1
votes
1answer
59 views

Copying a set of local files to ftp

I want to copy a set of local files to ftp://124.30.124.230 (it will ask for a username and password). I want to do this work on 400 systems so I have planned to do this work by creating a batch file ...
1
vote
3answers
83 views

How can I get the path to a Windows service executable WITHOUT using sc qc?

I need to query a windows service for the path to it's executable via the command prompt. I think the way I would do this is:sc qc myServiceName, but when I do that, I get the following error: ...
0
votes
3answers
92 views

Transferring files from ftp to local system

I want to copy a file from FTP and paste it to my local system. I want to run this through a batch file. I am trying this for a week. But I couldn't find the solution. Anyone help me please.... This ...
1
vote
1answer
60 views

Delete all files' prefixes with windows cmd

I have a bunch of files with the same prefix "prefix_filename.txt". I want to remove this prefix and underscore from all filenames, how can I do this?
1
vote
1answer
62 views

BAT/CMD to launch a exe multiple times with different parameters without extra bat files

Have a bat that calls a single exe for say 5-10 functions. Is there a way to make the executable run in multiple processes from a bat or cmd? for example: start cmd /k cd Program ...
1
vote
2answers
57 views

Need to sort files by extension and distribute to folders with CMD, VBS, BAT [closed]

Have a Exec that likes to download the internet. Free files and such. Of course its all mixed and in a download directory. I know that one of the admins before me had a script written but took it with ...
0
votes
2answers
36 views

How to make the task scheduler display the cmd shell when invoking a batch file?

I am using Windows 2008 R2, and I am trying to schedule my application in the Task Scheduler. I have created a batch with the right settings. The problem I have is: I need to display the Cmd shell ...
1
vote
1answer
31 views

What's the command-line equivalent of creating a new Partition through MS Windows Server?

For example, When I connect LUNs to a given server, I go into Windows Management, right click on a new disk, and click New Partition. Given Windows CMD prompt, how can I accomplish the same thing ...
2
votes
2answers
150 views

Passing CMD via PSEXEC to a remote computer via .BAT file

Using PSEXEC to call CMD for a DEL command on a remote computer through a batch script. PSEXEC \\hostname -u username -p password CMD /C DEL /Q /F C:\Folder\File.txt The script pauses with a new ...
0
votes
1answer
519 views

How to set env variables and run multiple commands with PsExec?

How can I run multiple commands with PsExec, and how can I export environment variables? I can run two commands by doing the below, but when I try to export an environment variable the second command ...
0
votes
1answer
45 views

Security settings * differences between cmd.exe window and IE

I plan to retrieve an rss file (xml format) with url http://alerts.weather.gov/cap/ma.php?x=0 from a web site periodically with a scheduled task. I have a php script to do that. When I access the ...
3
votes
5answers
431 views

How do I monitor who's logged in?

We in our department are implementing a new admin policy: everyone in a department which we support will receive admin access to their computers. We need to know (while we are performing this "pilot ...
0
votes
1answer
38 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
2answers
110 views

batch file to strip numbers from filename and pad to two digits

I have a text file with a list of server names (servers.txt) that looks something like this: server1 server2 server3 I have a feeling this can be done with the FOR command as I use that to perform ...
1
vote
2answers
52 views

Unable to issue commands to a remote server when using IP address

I know this is going to sound crazy and I hope that I may just be missing something simple. I am trying to use psexec to restart IIS on a cluster of remote servers. The dept that actually uses the ...
0
votes
1answer
90 views

PowerShell - type no inside every directory and open up notepad2

Do you know the notepad command in PowerShell or cmd.exe? I would like to do the same for NotePad2 I would like to type the following command inside PowerShell and open up the me.txt file; PS ...
0
votes
0answers
55 views

How can I start a shell which can be poped up on the remote windows server by ssh

I used freeSSHD on my remote Windows host to set up a Windows ssh server. Now I can login this server by ssh from another Windows client, but when I sent a command, such as "start cmd.exe", I found ...
1
vote
1answer
194 views

net use mapping not working in batch files but works in cmd

Ok so here's the problem : I've got users using logon script in the domain (username.bat). The script simply lists 4 or 5 (net use letter: \\SERVER\directory\). However, when they open their session, ...
0
votes
1answer
83 views

How to create a windows user from the command line, using a password from a file

Im in a somewhat unique situation. I am trying to create a windows user, using the command line or a batch file. I know how to do that in the basic case: net user username password /add The ...
0
votes
2answers
258 views

Windows Command SC, how to check errorlevel

I'm looking for a way to check the returncode / errorlevel of the SC command in a DOS script. How can I get this information ?
1
vote
1answer
585 views

using git on DOS command line asks for password - but not when using TortoiseGit or gitBash

I would like to use the DOS command line to enter the command: git clone "git_path.git" myDir It asks me to enter a password which I would like to avoid. I usually use TortoiseGit to do all git ...
1
vote
1answer
329 views

What happens when you type Exit in the CMD window on Server Core in an RDP session

I'm getting used to Server Core and I know at some point I am going to type "Exit" in the command window while connected through a remote desktop session. I know that if this is done while connected ...
1
vote
1answer
128 views

more than one start statment in the same batch file?

I wrote the following batch file: start D:\folder1\bin\run.bat start D:\folder2\bin\run.bat start D:\folder3\bin\run.bat start D:\folder4\bin\run.bat It executes the first start but then gives me ...
1
vote
1answer
230 views

Create self extracting (.exe) zip from the command line

Trying to automate a manual procedure in place currently. This is on a Windows 2008 server. Is there a method to create a self extracting (.exe) zip file from a commandline/batch file?
0
votes
2answers
341 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 ...
1
vote
3answers
190 views

how i can get folder and file name in windows and store it in variable?

i have a folder folder1 contain 3 files file1 , file2 and file3 ... i need command line to do the following task ... store the name of file in variable ... because i want to write dynamic batch
1
vote
3answers
148 views

Where are all the places Windows environment variables set?

When I run cmd.exe and type 'set' I have a %LIB% variable set. The value is pointing to a folder that doesn't exist, which causes warnings during Visual Studio compiles. Here's the thing... If I go ...
2
votes
2answers
1k views

Looking to add the “Log On as a service” right to an account via the command line

I am looking to make a user from the command line with minimal rights to run a service. cmd.exe or powershell.exe are both options, but cmd.exe is preferable. So far I got this: net user /add ...
1
vote
1answer
429 views

Adding a network location via a command prompt?

I'm wondering if it's possible to add a Network Location via the command prompt? This is not a drive letter mapping mind which can be achieved using the net use command.
0
votes
1answer
341 views

print exit code in cmd in windows os

print exit code in cmd in windows os ....some command return exit code ...where this code store...and i want to print this exit code and assign it to variable
2
votes
1answer
469 views

Convert .cmd file into Windows Service - 1053 Error

I have a file "init.cmd" which has the following commands inside it: set APP_ROOT=c:/wamp/www/myproj ringo -b %APP_ROOT%/bin/init.js %APP_ROOT%/app/main.js The file works fine when run from the ...
2
votes
2answers
184 views

Recursive CMD or BAT Windows Script

How can I create a BAT or CMD which will iterate through a folder tree and run same command agaists each folder file? E.g myexe.exe C:\Documents and Settings\folder1\filename.txt myexe.exe ...
2
votes
2answers
385 views

Difference between UnxUtils and GNU CoreUtils

I am a Windows user who wants programs like grep and sed along with other utilities like ls, cut etc in my command prompt. I came across 2 packages which would accomplish this UnxUtils GNU ...
0
votes
0answers
257 views

Query One WMIC Class and Call a Method from Another Class

Howdy. I cannot find any documentation on this, so I assume it is likely impossible. If one wanted to query info from one WMI class (like, say, if a user is logged) in WMIC and then call a method ...
0
votes
2answers
25 views

Application running as a service is not able to create the same number of processes as when it runs from cmd

I have a Windows application which creates up to 35 processes and it's working OK when it's running from cmd. But when it is executed as a service on the same machine it is able to create only 20 ...
2
votes
5answers
143 views

windows-server-2003, windows server, download utility from command line , http or ftp or any other protocol , from one command only

I need to know if there is a utility built-in to Windows Server 2003 that I can use from the command line to download a file using only one command. Basically I know that I can download from ftp using ...
4
votes
1answer
843 views

Windows: redirect stdout and stderror to nothing

I have a command I am running produces a ton of output, I want to silence the output without writing to a file. I have used the following to send all output to a file, but again I don't want any file ...
1
vote
4answers
57 views

Copying a chunk of output in Windows 7

I'm wondering how to copy a chunk of output in the command prompt in Windows 7. What I'm ultimately trying to accomplish is when I type "route print" I want to copy the IPs listed under IPv4 Route ...
6
votes
4answers
440 views

How to escape the > sign on Windows command line?

For example, foo -option 10->30 file.ext (this is an actual syntax required) redirects the output to a file named 30. How do I make cmd understand that I would like to pass the actual > character? ...

1 2