Over 1 million tech questions and answers.

[SOLVED] What is the command line command to set up secondary DNS?

Q: [SOLVED] What is the command line command to set up secondary DNS?

Hello all, what command would I run to set JUST the secondary DNS on clients machine, and nothing else? I appreciate the help! :)

Preferred Solution: [SOLVED] What is the command line command to set up secondary DNS?

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: [SOLVED] What is the command line command to set up secondary DNS?

:) Anyone have any idea? Maybe this can be moved to the 2003 server forum?

Read other 3 answers

I want to hide this. I'm running a python progam (if that matters) and it always has that open on my taskbar. I want to hide it. I don't care where it goes or how much time it takes, I just want to hide it. So I never have to deal with it. Maybe make it a system process or something? I don't know.

Read other answers

Anybody know the command to copy a disk? Like Linux = cp /dev/sda /dev/sdb , or dd xyz -> xyx

What's the Windows command line syntax for this copy task?

A:Command line to clone disk? COMMAND line; NOT 3rd party app.

No. Don't believe that is built in. The latest Windows versions have imaging software built in with a GUI.

Or, DD For Windows

Free system imaging/backup software:

Macrium Reflect (Free)
O&O Disk Image Express
Comodo Time Machine
Clonezilla Live (A bootable CD of Debian with Clonezilla.)
Paragon Backup & Recovery
Drive Image XML
PING (Partimage is not Ghost)
Partition Saving

Read other 3 answers


I need before calling one program insert text into clipboard.
I can do batch for this, but really don't know any command to send any text to clipboard.
Exist any command or method how to do it?

Thank you for all.

Read other answers


I'm trying to split a .flv file by using flvparse, which is a Windows-only, command-line interface tool. I did get through to the directory by following instructions posted on another forum, however, command prompt doesn't seem to recognize the the .exe file. I'm an absolute novice at this, any help would be really appreciated!

Attaching a CP s/s, and here are the instructions I'm trying to follow (copy pasted from the forum)


For trimming the beginning and/or ending of videos, you can use FLVParser (http://dev2.avacast.com/FLVparser.zip ).
FLVParser is a Windows-only, command-line interface tool. After you unzip it, move its folder to C:\ for ease of use. Also for ease of use, copy/move the .flv file you wish to edit into the FLVParse folder.
To make edits, you need to know the in and out points where you want the edits. Use FLVPlayer to find these points. FLVPLayer only lists times in total number of seconds, not HH:MM:SS, but don't worry, FLVParser can handle that. In the FLVParse directory create a new blank text file called: CuePointFile.dat
This is the file FLVParser uses to edit from. Open it in NotePad, and enter the in point and out point, separated by a single blank space, like so: 2525 5150
Save, and close the file. Open up the command line interface and go to the FLVParse directory: cd C:\FLVParse
In the command line, enter this to edit the flv:
flvparse.exe FileToSplit.flv CuePointFile.dat
Your file will be split into ... Read more

A:Command Prompt doesnt seem to recognize the command line!!

You are using the basic cmd, try in elevated mode
Elevated Command Prompt - Windows 7 Forums

However looking at you screen shot, you may have to check the command over carefully. There does appear to be an error in the command. With my eyes, it is difficult at times to pick out the subtle shades of difference.

Read other 1 answers

Hi everyone, what is the commmand for command prompt to stop a process? What i would like to do is make a shortcut to stop the KBD.exe process. The reason for that is when someone in my family puts a disk in, plays a game, and sometimes when they take the disk out it complains about there being no disk in the drive. The only way to shut it up is to end the process in the task manager and click cancel on the window. This way is a little to complicated for some of the memebers of my family and i would like to be able to just create a shortcut for it.

A:Whats the command line command to stop a process?


Originally Posted by djw2009913

Hi everyone, what is the commmand for command prompt to stop a process? What i would like to do is make a shortcut to stop the KBD.exe process. The reason for that is when someone in my family puts a disk in, plays a game, and sometimes when they take the disk out it complains about there being no disk in the drive. The only way to shut it up is to end the process in the task manager and click cancel on the window. This way is a little to complicated for some of the memebers of my family and i would like to be able to just create a shortcut for it.

Click on Start, then run
type in cmd to get to command prompt
type in taskkill /f kbd.exe

The forward slash /f forces it to kill the process.
Here is link for some examples


Read other 2 answers

I need some help, but probably don't have a full grasp on the problem, so don't really know how to ask for help. I will describe what I have and hopefully, it will help to describe what I want to accomplish.

I have a Linksys router with DD-WRT installed. I am able to SSH/Telnet into the router. I would like to be able to reboot or shutdown my computer remotely from the command line during a Putty/SSH session.

Here is how I make the session connection: In Putty, I enter
the static IP address and port (default is 22) under "Session".
Under "SSH > Tunnels" I enter the "source port" (again, 22)
and "Destination" (ex -, then hit "Add", then "Open"

This opens a command line, where I enter "user" and "pwd"
(the defaults are root and admin). I am now connected to my
router and I can use Remote Desktop to get control over my
remote computer (using XP Pro).

My question is: While at the command prompt, is there a
command to reboot or shutdown my remote computer? Is there a list
of other commands that are available here?

BTW, at the command prompt, I can start my remote computer (Wake on LAN) by typing the following command:
/usr/sbin/wol -i MA:CAD:RE:SS:44
(where the last portion is the MAC address)

Read other answers

I came across this (hopefully) helpful article about command line basics.

Speaking UNIX: Command the power of the command line

Learn the basics of the UNIX shell and discover how you can use the command line to combine a finite set of UNIX utilities into data transforms.

A:Command the power of the command line

Good stuff, but then there's something wrong with his verbatim copy of a directory... You should add the p option to the tar extraction command, in order to preserve file attributes (ctime, mtime, atime, owner, group) - ie, tar xpvf and not tar xvf.

I use this regularly in order to make verbatim copies of a directory:

(cd /path/to/src/dir && tar cf - .)|(cd /path/to/dst/dir && tar xpvf -)

Read other 3 answers

I want to create a setup whereas a command line command can be run from any directory/folder, without having to be in the directory/folder whereas the command line command resides ?

A:Executing command line command anywhere ?

Add the directory the cmd or bat files resides in to the PATH environment variable.

To check or modify the system PATH environment variable, do the following:

XP: Right clock on My Computer
Vista, 7: Right click on Computer
Windows 8, 10: Right click on This PC

Select Properties

Vista, 7, 8, 10: Click on Advanced System Properties on the left

On the Advanced tab, click on Environment Variables
Under System Variables, scroll down to Path
Select it then click Edit

An easy way to look at all of it is to right click on the highlighted Variable Value field and select copy, then start Notepad and paste the data into there. That way you can easily look at all of it.

It's also a lot easier to make changes in Notepad then copy and paste the changed data back into the Path Variable Value field.

Click Ok as needed to exit when done

Read other 4 answers

I came across this (hopefully) helpful article about command line basics.

Speaking UNIX: Command the power of the command line

Learn the basics of the UNIX shell and discover how you can use the command line to combine a finite set of UNIX utilities into data transforms.

A:Command the power of the command line

Good stuff, but then there's something wrong with his verbatim copy of a directory... You should add the p option to the tar extraction command, in order to preserve file attributes (ctime, mtime, atime, owner, group) - ie, tar xpvf and not tar xvf.

I use this regularly in order to make verbatim copies of a directory:

(cd /path/to/src/dir && tar cf - .)|(cd /path/to/dst/dir && tar xpvf -)

Read other 3 answers

Just built up a new computer. Installed Windows XP Home SP3. Installed fine but couldn't get online. Found out I needed to install the drivers from the motherboard install disk. It installs the drivers but then it has to reboot to finish. When it reboots it goes to a command line promt to make a raid disk. Problem is that I don't have a floppy disk drive in the computer. (Come on, I didn't think ppl even used em anymore.) If I try to take the CD out and run windows, It gets to the XP load up screen then restarts. Unless I run it in safe mode. My question is this:

Is there a command i can use in that prompt to save the Raid Disk info to another drive or port. Like a USB port or External Floppy Drive?

The motherboard is:
ASUS P5N-D LGA 775 NVIDIA nForce 750i SLI ATX Intel Motherboard

I've already tried to call Asus themselves but waited for 27 minutes and an operator answered n said they'd have to call back. sure

A:Solved: dos command line

If you installed XP Home and it is working, you don't need a RAID disk... so these probably are not the drivers you need.

You need the chipset, network and audio drivers here: http://support.asus.com/download/download.aspx?SLanguage=en-us&model=P5N-D
(skip the drivers for SATA RAID and NVIDIA nForce C55/MCP51 for 64-bit)

Read other 3 answers

I am working through a FBI virus notebook running Windows 7.

Using Kickstart I know which files I need to remove.

The file is "skype.dat" in the App Data\Roaming folder.

When I go into command prompt from the Repair Console the App data folder is hidden.

I'm currently trying the shards attribute but I'm getting alot of "access denied" reports from tmp files. I can't tell if it's endlessly looping or if it has yet to run through the entire folder.

Is there another way to get into this folder? I've done this process several times before but this is the first time I've been unable to access the App Data folder. There isn't a password set for the user.

I remember now that I'm signed on as the user...I've no idea if it's an admin account or not. I'll try to access another account and work at it from that angle.

My question is this: What would the proper DOS command be to make hidden folders visible? Not just visible but also to manipulate them and the files within? Is the -s-h-a-r/d/s the only way?

A:Solved: Command line help!!!

EDIT: Figured it out. Thanks anyway.

Read other 2 answers

I am trying to follow this:
"In your Windows box, type ?regedit? in the command-line and export the whole ?HKEY_LOCAL_MACHINE/Software/Adobe/? to ?adobe.reg?."
found here http://luiscosio.com/how-to-adobe-ph...buntu-10-steps

How do I export to a .reg file via command prompt?


A:[SOLVED] Vista Command Line .reg help

okey...it says like this in that page you stated:

In your Windows box, type ?regedit? in the command-line and export the whole ?HKEY_LOCAL_MACHINE/Software/Adobe/? to ?adobe.reg?.

is that what you did?actually the correct steps to do is should be like this:

In your RUN box (for XP) or in your search box (Vista), type in REGEDIT, and then press Enter. After you get the new windows which is Registry Editor, scroll to the HKEY_LOCAL_MACHINE/Software/Adobe/ by clicking on + sign. Then right click on the string HKEY_LOCAL_MACHINE/Software/Adobe/ and click on Export. Then save the string in one of your favourable folders

Hope this helps

Read other 2 answers

Would I be able to run a program the is located in the following location?

C:\Program Files\2BrightSparks\SyncBack\SyncBack.exe

I tried typing "start C:\Program Files\2BrightSparks\SyncBack\SyncBack.exe" without the quotes.

and that didn't work so I assume I can't but I am not sure. I don't know if I typed the syntax wrong or if it is not possible at all. Can someone please verify this for me?


A:Solved: Command line question

Read other 8 answers

I'm looking for a command line rename utility that will accept a file name and rename it with date information included. I.E.

........................... YYYYMMDDHHMM

YYYY - year
MM - month
DD - day
HH - hour
MM - minute

This utility has to run from a command file, not a GUI.

A:Solved: Command Line Rename

Read other 7 answers

Hi, I wanted to be able to induce the screensaver on my monitor when I was finished working.

So, I followed the instructions on this link:

How can I turn off the monitor (i.e., "put it to - Microsoft Answers


Create a shortcut and enter the following in the Location box.
POWERCFG -Change -monitor-timeout-ac 1
Name the shortcut whatever you wish. Double clicking the shortcut will cause the monitor to sleep in one minute.
You can create another shortcut when you want to use the system for an extended period.
POWERCFG -Change -monitor-timeout-ac 300
This will set the timeout to a 5 hour delay.

EXCEPT that the second part of the instruction doesn't work i.e. the monitor is permanently set to timeout in 1 min.

Obviously, I'm trying to stop this but I can't figure how to turn off this command. When I go to the file location, it just takes me to the C:\Windows\System32 Power Settings Command-Line Tool. Obviously I don't want to delete that but I want to delete the command causing the monitor to turn off in 1 min.

A:[SOLVED] Command line problem

I tried that - it didn't work. Like in the thread I posted, the first CMD worked but the longer timeout CMD didn't.

Read other 19 answers

Okay, so I found a nifty batch program that run through and converted all my m4a audio files to mp3 so that Windows Media Player would quit being so fussy on my laptop. (I share my music library and only keep iTunes on one computer since its so finicky.) After converting the files I realized the problem I had just created for myself. Now I have roughly 2000 duplicate songs in iTunes on my desktop that are syncing over and giving me roughly 2000 duplicates on my iPod. In iTunes I couldn't find a way to list the file names when displaying duplicates so my next option was to let windows solve yet another problem for me. I played around and was able to print my entire directory architecture and file listings for my music folder by running this command.

dir /s "D:\Snail Music\" > Music files.txt

Worked perfect, but what I'm hoping to do is to add in some kind of *.m4a flag to list only the files that are .m4a into a file. Can someone help me with this? Maybe even a vbs script idea that would work. If you have idea and can give me the basic thought process I can probably google my way through building a batch or vbs. Although if someone knows how to make the dir command list all my .m4a files I'll stick with that.

Thanks ahead of time.

A:Solved: Command Line / Batch

dir /s "D:\Snail Music\*.m4a" > Music files.txt

Read other 2 answers

I'd like to send a command to a program installed on my XP machine. I already have the command: /cursor='no'

... but I'm not sure how to structure the complete command line to the appropriate program. Could someone give me an example of a command directed to a program installed in C:\Program files?


A:Solved: Help Writing a Command Line

Read other 6 answers

Is there a way to look for a string in the registry from the command line and put it into a text file? Thanks!

A:Solved: Grep Registry from command line

Welcome to TSG!

If you know the key and value name it's easy. You can use reg.exe to query the registry.
reg /?
reg query /?
should get you started.

If you don't know the exact value name, you can list all the values under a key and pipe to find or findstr to find value names that contain a substring

You can use reg or regedit to export to a file and search the file for a particular item as well.

Read other 1 answers

I want to run a chkdsk c: /f /r /x from a command prompt but NOT have it ask if I want to run it at next reboot. I just want it to run without a y/n input. Is there any such way to do this?

A:Solved: Run chkdsk.exe via command line without getting yes or no prompt?

No way. It can only fix errors when the OS is not running.

Read other 2 answers

Hello Everyone!
I'm a first time poster! My current project is making a batch file that will compress a folder / drive, password protect it. I then I will include my Nero batch info and burn it to DVD so that it is password protected. I'm having issues with the Winrar batch part. I have it listed below
"C:\Program Files\WinRAR\rar.exe" a -m5 -e -pTest c:\test\ c:\

However it doesn't copy anything. Can someone please help me out if my flags are incorrect or syntax is incorrect.

Thanks in advanced,

A:Solved: WinRar Command Line Question

Read other 6 answers

HI guys how can you do system restore when you cannot get the O/S to boot up in the first place. Can you do it from command line?? If so what are the steps?? Any help will be of great interest.

A:Solved: XP system Restore from Command Line

Read other 6 answers

I've got a very specific task in mind: I'm creating a CD full of mp3's which will play on my portable cd player. BUT: for it to 'see' the mp3s, all the file names have to be preceded by 3 digit track numbers, i.e. 001, 002, NOT 1, 2, or 01, 02.
Rather than re-label 'em all by hand, I'd like to use the rename utility. The only problem is that the rename utility doesn't 'add' the zeroes in front, it 'overlays' the zeroes over the existing label, so I get a bunch of files all numbered '00'.

Simplified Example: I've got a list of ten cuts in the album "Call Me A Cab":
0 - call me adam
1 - call me betty
2 - call me carl
3 - call me david
4 - call me edna
5 - call me fergus
6 - call me gary
7 - call me henrietta
8 - call me ian
9 - call me jane
10 - call me kerry

I position myself in the command window and issue the command:
ren *.* 0*.*

I would think that the interpretation of that command would be take every file in the directory, and place a '0' in front of it. But when I execute the instruction and look at my directory I have:

0 - call me adam
0 - call me betty
0 - call me carl
0 - call me david
0 - call me edna
0 - call me fergus
0 - call me gary
0 - call me henrietta
0 - call me ian
0 - call me jane
00 - call me kerry

The instruction didn't 'add' the leading zero, it replaced the first filename character with the leading zero (It has nothing to do with it being a... Read more

A:Solved: Trying to use command line to rename many files at once.

Read other 10 answers

So, I need to store the output from a command in an environment variable. The problem is, I need to do this in a command window. The command is "hostname".

On Unix, this is easy since I can use a command similar to this:

$ set myhost=`hostname`
$ export myhost

I can put those commands in a script or "stack" them with a double ampersand. In any event, I'm looking to do something like this on Windows XP.

I can run the "hostname" command and it outputs the system's hostname to the screen. I can redirect that to a file or whatever but I can't seem to get it passed to a batch file or something I can use to set it in the environment.

The COMPUTERNAME environment variable won't work for me because in this case the hostname of the machine will be different from the COMPUTERNAME.

Any ideas?



A:Solved: Help needed with a command line issue on XP


C:\>hostname > myhost.txt

C:\>type myhost.txt

C:\>set /p myhost=<myhost.txt

C:\>echo %myhost%



Read other 2 answers

Hi all, i use this script for compress all bak files into the backup folder in separated files with 7zip.
for %%I in (*.bak) do 7z a "%%~nI.7z" "%%I"

The thing i have to add here is when finish compressing each file deletes the source .bak file, is this posible?

Thanks a LOT!!!! & Thanks TheOutcast for the original code from here !!!!


A:Solved: Help With Command Line Batch Script

Read other 14 answers

I do a ton of batch scripting and I was hoping there is something that I can do for this. I have over a bunch of Jetdirects that we have to configure. I currently have an empty ethernet port that I use to configure the one or 2 I need to.

The jetdirects always have a default port of

Standardly from my PC I'll do a route add 192.168.X.X (the IP of my computer) Then I'll do a Telenet and I will make the changes.

The big thing is the only thing that will change on each print server will be IP and gateway all other fields will be exactly the same on each jet direct (some default some configured by us). I.E. IPX/SPX turned off.

What I need to know is if Windows Telnet command allows for any type of telnet scripting.

I would love to be able to dump all of this onto a script. I was thinking something that would add the route that would then make the changes per whats on the script then add the new route to the newly created IP and then lastly ping that newly created IP to ensure the device has basic network connectivity.

Anyone with any thoughts? And don't say Web jetadmin cause that takes me longer to use than telnet.

A:Solved: Command line telnet scripts?

Just an FYI I found a GREAT program that allows you to batch telnet within windows.

Telnet Scripting Tool V1.0 - Also known as TST10.exe it works wonders all you do is type up a combination of wait and sends in a text file to accomplish your programming.

wait ">" ------------- Waits for the >
send "/\m" ------------- Sends / (\M is a carridge return (or enter))
wait ">" ------------- Waits for the >
send "banner:1\m" ------------- Sends banner:1 (\M is a carridge return (or enter))

Hopefully this will help someone else looking to batch up a telnet session.

Read other 1 answers

I just installed a new brother MFC-9840CDW printer and when i try to scan to email (Outlook 2003) it tells me, "The command line argument is not valid. Verify the switch you are using." Any suggestions? I did download a hotfix from microsoft but that did not fix the problem

A:Solved: The command line argument is not valid?

Does it support Outlook? Is Outlook your default mail handler?

Read other 2 answers

I'm not sure if I have the name right, but, basically; the little blinking line that shows up when you're typing something, right? AKA, when you're writing up a response to this, it will be there just ahead of your text.

Anyways! This thing won't go away on my Firefox, no matter where I click. For instance, if I click off to the side of this type box, the line blinks off to the right of the resize button. If I click up near the top of the page, it'll be somewhere up there, depending on where I click, usually next to a link or something. If I click in the middle of any text on a webpage, say a blog or what have you, the little line is right there, blinking merrily away.

So it's not a huge problem, but it's irking the hell out of me. My sister brought her kids over while I was at work, and I'm assuming they got a hold of my keyboard or something, since it wasn't happening before now.

Anyways, anybody have an idea of how I might stop this little nuisance?

A:[SOLVED] Command Prompt Line always showing

It's called caret browsing and can be toggled on/off with the F7 key.

The kids might have hit the key by mistake, but it usually brings up a popup box asking you to confirm the change.

Read other 2 answers

Hello everyone, this is my first post, and my apologies if it is a common and or difficult problem to solve.

Basicaly, i have installed WinUtilities. Windows wont let me open it because of a DPE warning. I have gone to the DPE settings (ie. Right click my computer - properties - data protection execution) to find it is all greyed out and unable to change anything. It says that i need to be administrator - I AM ADMINISTRATOR!!!

I have gone to the command line and typed 'C:\WINDOWS\System32>bcdedit.exe /set {current} nx AlwaysOff' with no luck.

What else can i do??

I am stuck and i need help asap!!


A:Solved: DPE Greyed out and command line not working!!

Welcome to TechSupportGuy.

I presume you mean DEP Data Execution Prevention
What please is all greyed out. See my screenshot.

Secondly WinUtilities for the most part, simply provides a method of carrying out simple maintenance functions that are already provided with Windows. HOWEVER it also includes a registry cleaner which is in itself ample reason NOT to have the program on your computer.
NEVER use a registry cleaner. As to why, please see the link in my signature notes.

Also please confirm that you are posting regarding the computer in your ComputerSpecs.
The reason I ask is. This is how to turn off DEP in XP
NOTE - not recommended
Total or Disabling DEP on XP (Not recommended)
Right click on "My Computer"
Select "Properties" and "Advanced"
Under "Startup and Recovery, click Settings
Now click on "Edit"
The notepad has just begun. Simply replace the line:

noexecute opt in by AlwaysOff
Restart your PC to complete the transaction.
If you want to reactivate the DEP be sufficient to conduct the reverse, like this:
Replace by Quote:
AlwaysOff noexecute = noexecute = optin

AND this is how to do it in VISTA
Total Disabling DEP on Vista (Not recommended)
NB: You must open a CMD window as an administrator, like this:
Navigate to "All Programs" and "Accessories"
Right-click on the icon "Command Prompt"
Click "Properties" tab and in the "Shortcuts" where you normal... Read more

Read other 3 answers

I am trying to close a window on my Win2000 Ser using a batch file. I cannot find a way to shutdown the SQL Remote (I have Adaptive Server Anywhere 7 ver. SyBase told us to make the application a service but for one reason or another we cannot in this instance. Does anyone know how I can shut down this app. ether through SyBase or through Windows?

A:(Solved) Closing a window with a command line

Howdy Bookworm69...

If it is running as a process you can use tskill, to end it in a batch...

You will need the W2K resource kit for the file tskill.exe...

Read other 3 answers


i would like to transfer a folder in My Documents to another computers Desktop at work in the same subnet.

My computer name is WKS10 and the other computer name is WKS15.
The folder is named XLSDOCS.

WinXP Pro

Just trying to figure out the command line way of doing this thanks!

A:Solved: how to transfer files in same subnet with win command line help

well, from what I know, if the desktop is shared, you may be able to do copy (full path name and file name) \\computername\shared folder.

For example: copy c:\XLSDOCS\ \\WKS15\DESKTOP

note I have not done this in command line. I would suggest making a shortcut to a shared folder instead so you can drag and drop.

Read other 3 answers

I running Outlook 2003 and when I open an e-mail and click on a hyoerlink I get this message - Command Line Option Syntax Error. Type Command /? for help.

Not sure what this means or what to do to fix so that the hyperlink will open.

Thanks for any help.

A:Solved: Outlook Command Line Syntax Error

I found this microsoft article and did a repair to the Urlmon.dll file and the hyperlink now works.

Read other 1 answers

I have a command line batch file that I have used for over a year to map drives between Windows 2000 Machines. It has always worked flawlessly. I have now put Windows XP home on one of my machines and the batch file no longer works when mapping drives to the XP machine.

Here are the lines that worked until I put an XP Home system in its place:
if not exist S:\*.* net use S: \\Office2\C /Persistent:no
if not exist T:\AC\*.* net use T: \\Office2\D /Persistent:no
if not exist U:\Original\*.* net use U: \\Office2\E /Persistent:no
More Info:
When browsing the network with Windows Explorer, I can access all the drives on the XP machine.
When browsing the XP's E drive in Windows Explorer, the network path that shows in the address bar is:
\\Office2\Office2 (E)
The error message I get is
System error 67 has occurred
Anyone have any ideas on how I can again map drives using the command line?

A:[SOLVED] Mapping drives from command line in 2000 to XP?

Read other 16 answers

I'm trying to install AutoExNT on Windows XP. I got it from the Windows 2003 resource kit thingy. I'd installed and tested it on my system, and it did what I wanted. I'd installed it from the GUI.

Since then, I've had to do a reinstall of Windows XP, so now this is a fresh installation. I realized that it's much more convienent to reinstall the thing from the command line, so I'm attempting to do so. It's truthfully not the bare command line, but a batch file. The problem is I can't seem to get it right after several reboots. I'm hoping it's a simple error somewhere, but I'm posting it here to save several days more of continous reboots with no success until by trial and error I figure it out.

Not including irealivant code, such as my setup code to install the setup programs, I'll post my code. I've got 2 files. One to install the program, and one to uninstall the program. The uninstallation program seems to be working fine. It's the installation program I'm having trouble with.



ECHO Deleting standard autoexnt_startup script...
sc stop AutoExNT > NUL
IF EXIST %systemroot%\system32\autoexnt.bat DEL %systemroot%\system32\autoexnt.bat > NUL
IF EXIST %systemroot%\system32\autoexnt.exe DEL %systemroot%\system32\servmess.dll > NUL
IF EXIST %systemroot%\system32\autoexnt.exe DEL %systemroot%\system32\autoexnt.exe > NUL
instexnt remove > NUL

... Read more

A:Solved: How do you install and configure AutoExNT from the command line?

Read other 13 answers

Hi All,

Trying to set up some scripts to automate a few processes.

I need to be able to delete the contents of a folder/s including subfolders BUT not to delete the top folder itself.

Looking to find the find the command line code for this.

If anyone has any ideas that would awesom!

Thanks in advance.


A:Solved: Delete Contents of folder using command line

Read other 10 answers

What is that commandline word so I can see what is in my startup list? I have forgotten.

A:Solved: Command line word to see my startup list?

Hi jVirus

Are you referring to: msconfig ?

Read other 2 answers

Hi Everyone,

Am in need of some help with command line service starting.

I know that you use "NET START "Service Name".

But I have a service that requires a different set of Log on to information and every time I reboot the server it loses them.

I am looking at making a bat file to start the services automatically and I was wondering if there is a way to set the password for a service within the command line that way I would only need to click on a bat file.

Thanks for any help you can give...

A:Solved: Command Line - Start Service with password

i Don't understand What You Mean By password ..

>> that way I would only need to click on a bat file.
You Just Double CLick On A Batch File And It Should Run



net stop "Sc1"
ping -n 5 localhost &: wait 5 seconds
net start "sc1"

Read other 3 answers

I want to store >> into a SET variable.

Normally, I would do this:
However this returns an error.

How can I store >> without using quotation marks?

It needs to be >> in order for my script to work correctly?

Hope you guys can help.


A:SET command in Command Line

Read other 10 answers

Hi guys,

I need to compile a list of the contents of two external hard disk drives, which is estimated to be about 3000 or so folders. what is the command I should use to make Windows automatically generate a txt?

Item is worth noting that in this directory there are also a mix of different filetypes, what I need are only the names of folders AND files in the root directory.

For examplary purposes, let the drive be called D:\, a folder in the root called \FOLD and a file in the root \BILL.doc.


A:[SOLVED] Command Line: List files and folders in a directory?

Hello Bill!

So you don't want to recurse, or you do?

Will dir E:\ do the trick, or not, and why? You could then pipe it dir E:\ > %userprofile%\Desktop\test.txt

Otherwise, look at OTL: http://www.geekstogo.com/forum/topic...dtimer-listit/

Click the NONE button, paste this in, and click RUN SCAN:


If you want recursion, you need to use /FP.

Good luck!


Read other 6 answers

Hello.. is there a command line command that will show me all the pc names in my subnet in list form...


command line command

workstation3 etc.. etc...
and their ip addresses?

if so, that would be so cool.

thanks for any info.

A:Solved: command line trick to see all pc names/ip's in a subnet? Admin Help

Read other 12 answers

Operating system XP

This has been a strange error to track down, it started when a few programs would no longer run (outlook, open office, etc..) They would all suggest that a command line argument was incorrect. No matter how the program was run (shortcut, directly, run program box) it would still fail.

I ended up throwing a few lines of VB code together to display any command line arguments that may be passed to it; when I run my program I see it is sent a single quote "

This is the same if i double click the file in explorer or type the program name in the run box.

Every single program that is opened is passed a single quote as a command line argument!!! Same in safe mode, even tried a system restore to a date before this problem with no luck.

no idea where to start looking so please, any suggestions

- Andy

A:Solved: command line argument added to EVERY program opened

Since System Restore had no effect, the standard EXE fix may not help either, but worth a try. #12 at:http://www.kellys-korner-xp.com/xp_tweaks.htm

Start, Run, Msconfig, Startup. Can you identify all the entries? Google the names, if unsure.

Have you installed any programs lately? Or updates?

What is the 'exact' wording of the error message?

Read other 3 answers


When I go to Start-Run-cmd-ok the resulant screen shows:

C:\Documents and Settings\Owner

and I don't know how to delete this line so that I can enter the command that I want to run (driverquery).
I'm hoping that there is a simple solution. I obviously am not too experienced in using the command prompt.
Any help would be greatly appreciated.
Thank you.

Joe Sixties

A:Solved: Command line cmd frozen on Documents and Settings\Owner

Read other 12 answers

I just ran the netstat command in command.com and these are the results: (it just started doing this today)

Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.

&#9552;!X&#9567;&#9824;&#9488; \ &#9567;&#9824;&#9564; &#9658; &#9553;[&#9618;&#9830;&#9561;&#937;&#9644;&#9552; +&#9516;&#9787;, &#9794;&#9492;t&#9824;&#9632;&#9824; &#948;&#9829;&#934;X&#9830;&#9492;&#9508;&#8595;&#9552;!&#9632;&#9492;&#9787;\

(then I hit enter hoping to open another prompt and the app (command.com) just closed) (yikes lol)
this was happening with CMD.EXE earlier today using any command, but i thought this was a separate issue, apparently not

also running cmd.exe from (start menu>run) ...Now CMD WILL NOT even open.

I ran norton full sys scan and nothing.

I hope I dont have a virus that has yet to be defined. (fingers crossed).

So in essence the command.com (command interpreter) now shows the win-ding font or some other sort of encryption,

and cmd.exe (command shell) wont even open now.

I have internet access ok, and all other apps seem to be running fine.

Its almost as if someone, some process, or some app does not want me to be able to see what Im connected to in real time by using the netstat -a command. (am i going to conspiracy here? lol ... Read more

A:Solved: In urgent need of MVP/ command shell and command.com issues (XP HOME SP1)

addressed in another forum

Read other 1 answers

I am writing a VBA macro in Excel and have hit a wall. I am trying to get excel to open a command prompt and make it execute a command. The problem I am having is if I try to do anything but open another program, it throws an error back at me.

I can open the command prompt using:
Call Shell("cmd.exe" & dosCmd, vbNormalFocus)
I can also open Acrobat which is the program I need using:
Shell "C:\program files\adobe\acrobat 9.0\acrobat\acrobat.exe", vbNormalFocus
However if I simply wanted to open a PDF file, I have the code to that without opening a command prompt.

I need to open the PDF document on a specific page, and to my knowledge the only way to do this (apart from manually) is to use the command prompt. However I have no idea how to get VBA to put the command in the command prompt, hit enter and then close the prompt.

There are 2 commands that need to be executed in DOS (I'm not sure if there is a way to combine the commands)

They are:

cd c:\program files\adobe\acrobat 9.0\acrobat

start acrobat.exe /A "page=10=Open Actions" "M:\Full Scores\allegro.pdf
These open the pdf document called allegro on page 10.

I am completely stuck. Out of ideas. I've searched the length and breadth of the internet and can find nothing to point me in the right direction. So I was hoping one of you fine people could. Thank you so much, James

A:Solved: VBA Macro that opens the Command Prompt and executes a command

Read other 8 answers

Manually Export individual registry keys or a specified bunch of Reg Keys by command line or a batch file or any other way that doesnt involve opening regedit and moving to the specified key and manually exporting it....

Even if it needs the use of some softwares, it would do..

A:[SOLVED] Manually Export individual registry keys from command line or any other way?

You can use regedit from the command line
Regedit /E filename.reg [key to export]
If you don't specify a key, the entire registry is exported
Regedit /E "%userprofile%\Desktop\Batfile.reg" hkey_classes_root\batfile
Will export the HKCR\Batfile key to a file named batfile.reg on your desktop.
You can't use the short version for the key name, it has to be spelled out, so HKCR can't be used in the above example.

Or you can use reg.exe commands to add, deleted, query, or export keys.

Read other 6 answers

I want to create a shortcut to run Excel from the command line and in that command or batch be able to run a macro from the workbook in my XLSTART folder. This way, the user does not have to run the macro from Excel menus.

I also want to create a shortcut to run Word from the command line or batch to run a macro (a global macro) when Word opens. Again, the user does not have to get inside Word to select a macro from the menus.

I have searched the internet and found that neither program has command line switches to immediately run a macro at the Office program start up.


A:Solved: Run Excel and Word Macros From Command Line Office 2007

Read other 9 answers