Hi all,
I'm going to reset IIS through a batch file. Using iisreset utility, as the batch file will be used by others who may log in the domain without the administrator account of the target server. How can I make the batch script running with proper permission? Thanks in advance!
And I also don't want to prompt the user to type in us...
Hey there, I have a small problem with compiling and linking with the command prompt(windows xp). Every .c file and .cpp file I compile or link has to be in the same directory as gcc (C:\Program Files\gcc\bin) and its quite hard to keep track of my files among all those gcc related files and its annoying too:). My question is how do I co...
I'm porting a Linux tool-set that makes frequent use of shell functions to provide certain functionality. These functions are automatically sourced when you start a new shell and include things like changing the working directory, which is nigh impossible with stand-alone programs because child processes can't change their parent's envir...
I am making a command line interface in Python 3.1.1 using the cmd module.
Is there a way to create a command with more than one name e.g. "quit" and "exit"?
Or would it just be a case of making a number of commands that all reference the same function?
...
Say, if I have
foo.exe
bar.exe
baz.exe
How do I run all of them from a batch file asynchronously, i.e. without waiting for the previous program to stop?
...
Hi, I have two installations of Windows 7. a 64bit version on my hard disk, and a 32bit version installed as a bootable VHD.
on my the 64bit version, I can't get my PNRP Global_ cloud out of Alone state.
on my the 32bit version, I can get it in Active state by registering a peer however I can't resolve a friends peer, maybe I misunders...
Is there a simple way to log everything that appears in the command line window? I have a batch file that is running some things but everything flies by so fast I cannot see if any errors have occurred.
Any ideas?
Thanks!
...
for /f %%i in ('someprogram %1 2>&1 | find /c "some string"') do ...
it says
2>&1 was unexpected at this time
...
What should I use to accomplish this task?
CMD.exe?
Powershell powerscript?
Windows Script Host with VBScript or JScript?
Task:
transverse into every sub-folder of a folder
if the subfolder has a folder name XXX, invoke certain commands
...
I want to prompt the user for some input detail, and then use it later as a command line argument.
...
Hello all,
I have created a small command that will let me launch Internet Explorer. However, I wish to close the small command prompt that shows up when I launch IE. How can I do this? This is my current code:
"%ProgramFiles%\Internet
Explorer\iexplore.exe"
http://localhost/test.html
PAUSE
I am guessing if I take out the Pause. It w...
Hello all,
What I am trying to do is have some sort of script run in windows (ideally .cmd file/batch file) when double clicked it should create a short-cut menu in the start menu and set a path in the windows registry (i think thats what it is called) so that next time, for example, all I have to is get the variable JAVA_HOME to get th...
As far as I'm aware, this is done via the net command.
However, the help section isn't very helpful, as it only shows me the secondary options and not how to use those.
Suppose I had a folder C:\Share_test
How would I make it shared from the command line?
...
I just recently saw that xcopy is deprecated and that Robocopy is recommended.
I tried moving files with it, but couldn't get it to work.
I tried moving files from C:\Downloads\Temp to F:\Temp
Both folders had no files directly under them. Downloads\Temp has about 20 folders, some of which have subfolders, which are eventually filled w...
I have some files of fixed line size, fixed field size that I need to extract information from. Nornmally, I'd use Cygwin (cut et al), but that's not an option in this case due to (boneheaded) management policies I can't change. It has to be done using standard XP toolset included with Windows.
I need to extract the 10 characters at off...
I have been trying to figure out a way to manage our domains at work and easily created a SimpleDNS class, but now I'm on the IIS Server Administration side of it and I'm just lost on what is going on.
Here is the PHP code I am running to test it.
<?php
$cmd = 'iisweb /create c:\websites\examplesite.com\www "Example Domain!" /d www.exa...
I have an application that is run over a network. I need to be able to run this application from a batch file, and had ended up using this:
pushd \\server\folder
start /wait program.exe
Aside from the message saying...
\\server\folder
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Def...
Hello.
I am coding a C program in Dev-C++, and I need to use a couple of Windows (CMD) commands. It is easy, but when the command in the system() function is executed, the program runs the console in the execution.
An example:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
system("if not exist ...
Hello,
I am developing a card game for batch.
[will give a link when done]
Basiclly what i want to do is 'set' '%random%' to '%numbs%.
set %numbs%=%random%
And then i want the user to type one value from the %random% numbers displayed
echo %numbs%
Set nuchoo=
set /p nuchoo=Number:
What my question now is about how to check if the...
I would like to run a script for each language.
I need a way to find wich os language is being used, using batch files.
Both on windows XP, and on Windows 7.
Thanks
...