Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
37 views

XAMPP/PHP on Windows

I am running XAMPP on Windows Vista. XAMPP is a ~one year old install with all default options. I wrote a script in PHP that will do a web crawl and place data in mysql. I placed ...
2
votes
2answers
116 views

CMD - Rename Local Computer, Join Domain, Join Specific OU

Alright so not sure if this is entirely possible all in one. Situation: Brand new computer not on the domain, just a local workgroup. Want to change that computers name, join a domain, and put the ...
0
votes
0answers
67 views

Suppressing / Accepting warning windows automatically in commands executed through batch file

I am automating the uninstall of IE9 through executing the command in these instructions inside a batch file: ...
0
votes
2answers
72 views

Add time to Windows script

I have this mini Windows Script which is execute every hour it basically create a file every hour but I need to rename the file using date (which is already done) but I am not able to add the time ...
0
votes
1answer
137 views

How to start scheduled task in minimized cmd window? [closed]

Possible Duplicate: Run a .bat file in a scheduled task without a window In Windows 7, I have a scheduled task running a console application in a CMD window. It runs every day at 12 ...
0
votes
4answers
211 views

Disable remote desktop through CMD or script in Windows 2008

I'm looking for a way to disable Remote Desktop login for Windows 2008 for a specific user (a local administrator account), either using the command line or a script (such as VBS) in Windows 2008. I ...
1
vote
1answer
79 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
97 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
80 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
89 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
513 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 ...
2
votes
5answers
381 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
3answers
2k 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
104 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
210 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
553 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
74 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
95 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
235 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
176 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
123 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
107 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
82 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
68 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
32 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
295 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
913 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
59 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
552 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
71 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
153 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
68 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
94 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 ...
1
vote
1answer
256 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
87 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
350 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
801 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
447 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
164 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
278 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
413 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
215 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
154 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
2k 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
557 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
390 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
551 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
210 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
468 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
289 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 ...

1 2