Question

Command Prompt Question

Asked by: DornerDiamonds

How do I run the command prompt Winnt32.exe command with the /copydir: testadpcrd switch. I am trying to do this in the cmd shell but it is not working. What is the syntax for this. I am trying to understand winnt.exe and winnt32.exe. Any explantions to these questions would be appreciated.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-09-09 at 12:48:15ID24719333
Topics

Windows 2000 Operating System

,

Windows 95 and 3.x

,

Windows ME Operating System

,

Windows NT Operating System

,

MS DOS

Participating Experts
4
Points
50
Comments
32

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Variable in Shell Command (syntax)
    I am trying to a windows version of the grep command through a VB cmd button which takes the string from the textbox saves in a variable than inserts it into the grep command. What would be the proper syntax for this. This is what I'v got so far. It is for tracking down ba...
  2. vb.net shell cmd for ping
    Shell("ping 216.239.37.99 > c:\pinger.log", AppWinStyle.Hide, False) The above isn't working. If I change to AppWinStyle.NormalFocus I see a cmd box pop up for a split second. The output is not being written to c:\pinger.log like I would like. However, if I c...
  3. Problem with Shelling Commands in VB6
    Hi, I am trying to use the Shell command to run a batch file from a VB6 module. Here is my current syntax: commandLn = cmd "C:\Root\merger.bat " & FilesArray(i).Path & " C:\Master\master.zip C:\temp" lPid = Shell(commandLn, vbNormalFocus) A...
  4. Telnet: cmd command
    Hi, I am using the Net::Telnet module and calling $telnet->cmd($command) to invoke a process on a remote 2K machine, from a shell script on linux. The process is invoked fine but the 'cmd' command does not return even after the remote process is over. The script just waits...
  5. Shell Command in vb.net
    I had a program which will convert the content of text file into a desired format and inorder to run this pro we need to pass in input filename paramter and keyword /p and will generate a txt in the working ditector. I have excecuted the below syntax in command prompt and t...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: msacc97Posted on 2009-09-09 at 13:54:26ID: 25295461

DornerDiamonds,

http://technet.microsoft.com/en-us/library/cc782342%28WS.10%29.aspx

winnt.exe runs under 16-bit operating systems (MS-DOS, Windows 3.x..),  winnt32.exe runs under 32-bit operating systems (Windows 95 and later..)

PS But why are you asking that in MS Access section?..

 

by: DornerDiamondsPosted on 2009-09-09 at 14:32:34ID: 25295799

WHAT ABOUT THE COPY DIR QUESTION

 

by: msacc97Posted on 2009-09-09 at 14:41:01ID: 25295856

Did you check the link provided?
Do you have appropriate OS installed?
Have you provided full and valid path to winnt32.exe?
What actually error message do you have?

 

by: QlemoPosted on 2009-09-09 at 15:52:23ID: 25296268

As you can see in the link provided, /copydir needs a  plattform architecture  (i386 or ia64) defined as prefix of the folder path  provided.

 

by: aikimarkPosted on 2009-09-09 at 18:42:12ID: 25296894

Are you trying to execute the XCOPY command?

 

by: DornerDiamondsPosted on 2009-09-10 at 06:07:07ID: 25299730

what do you mean by a platform archatecture? I am just trying to learn how to successfully practice the copydir in the command shell. Any help would be much ablidged.

 

by: QlemoPosted on 2009-09-10 at 06:17:45ID: 25299832

Please have a thorough look at the syntax in the link given above. It should be immediately clear  then. If not: Usually you say
/copydir:i386\CreateThisFolder

May I ask why you want to use that option?

 

by: aikimarkPosted on 2009-09-10 at 06:28:22ID: 25299909

Since CopyDir is not a system command (in all versions of Windows), it would be better if you used something like XCOPY.

 

by: msacc97Posted on 2009-09-10 at 06:37:29ID: 25300004

QUESTION 2:

You work as the network administrator at Certkiller .com. The
Certkiller .com network consists of a single Active Directory domain named
Certkiller .com. All servers on the Certkiller .com network run Windows 2000 Server. Half the client computers run Windows NT 4.0 Workstation and the rest run
Windows XP Professional. The Certkiller .com network also contains a file server named Certkiller -SR24.
You need to upgrade a Windows NT 4.0 client computer named Certkiller -WS290
to Windows XP Professional. However, the Windows XP Professional installation CD does not contain the drivers for the network adapter card currently installed on Certkiller -WS290. You copy the i386 folder from the Windows XP professional installation CD to a shared folder named i386 on Certkiller -SR24. In the i386
shared folder you create a folder named Testadpcrd and copy the drivers for the network adapter card to the Testadpcrd folder.
You want the Testadpcrd folder to be copied to the folder on Certkiller -WS290 during the upgrade process. After the upgrade, you want to be able to access the drivers in the Testadpcrd folder for future use.
What should you do on Certkiller -WS290?

A. At a command prompt, run the Winnt.exe command with the /r:testadpcrd switch.
B. At a command prompt, run the Winnt.exe command with the /rx:testadpcrd switch.
C. At a command prompt, run the Winnt32.exe command with the
/copysource:testadpcrd switch.
D. At a command prompt, run the Winnt32.exe command with the /copydir:testadpcrd switch.
Answer: D Explanation:
In the i386 folder you will find the Winnt32.exe or
Winnt.exe. In the command prompt you the use the Winnt32.exe command with the copydir switch. The copydir:folder name create a customized subfolders that can be used with the Windows XP Professional installation. If you use the /copydir option,
the folder is not deleted. Incorrect answers:
A: The /r switch is used with the winnt command. The winnt command
is used to install Windows XP Professional on a computer that is not running Windows
98, Windows Me, Windows NT 4 Workstation, Windows 2000 Professional, or Windows
XP Home Edition.
B: The /rx switch is used with the winnt command. The winnt command is used to install Windows XP Professional on a computer that is not running Windows 98, Windows Me, Windows NT 4 Workstation, Windows 2000 Professional, or Windows XP Home
Edition.
C: The /copysource:folder name is used to create a temporary subfolder for Windows XP Professional files to be used during the installation process. Once the installation process

is complete, the folders created with this process are deleted. If you use the /copydir
option, the folder is not deleted. Reference:
Lisa Donald & James Chellis, MCSA/MCSE: Windows XP Professional
Study Guide; Third Edition, Sybex Inc., Alameda, 2005, P. 11

 

by: DornerDiamondsPosted on 2009-09-10 at 07:38:15ID: 25300669

That is the question that I answered too, but I am trying to understand the steps to do the copy dir

 

by: msacc97Posted on 2009-09-10 at 08:02:22ID: 25300917

As soon as I will get answers to my questions, I and other guys would be able to suggest where to look next (if you still have problems..)..

 

by: DornerDiamondsPosted on 2009-09-10 at 08:16:50ID: 25301091

I just want to understand if I am using DOS with the command copy dir

 

by: QlemoPosted on 2009-09-10 at 08:22:29ID: 25301130

/copydir has nothing to do with DOS (or cmd.exe), as already told. You only use cmd.exe to start the winnt32 executable, and the copydir is just a switch for that executable.

 

by: DornerDiamondsPosted on 2009-09-10 at 08:33:10ID: 25301240

so I am in DOS and the syntax is copydir:testadpcrd. Every time I do this it errors with syntax wrong/infaled. What is the proper syntax

 

by: msacc97Posted on 2009-09-10 at 08:40:50ID: 25301314

If you want just to copy directory - use XCOPY
Syntax and examples here:
http://ss64.com/nt/xcopy.html

In Vista you'd rather use ROBOCOPY
Syntax and example here:
http://www.mydigitallife.info/2007/05/07/robocopy-syntax-command-line-switches-and-examples/

And you can always get help from command prompt - just type XCOPY /? or ROBOCOPY /?

 

by: DornerDiamondsPosted on 2009-09-10 at 09:14:31ID: 25301679

I was able to do xcopy and robocopy, but copydir I am not able to do. Do you know why that is? if you know where this is let me know, thanks for everyones help.

 

by: aikimarkPosted on 2009-09-10 at 09:14:44ID: 25301681

@msacc97

Thanks.  I'd forgotten about the SysInternals tools that were incorporated when Mark R. went to MS.

 

by: jimpenPosted on 2009-09-10 at 09:21:51ID: 25301748

Does your error look like this?

C:\>winnt32 /copydir:testadpcrd
'winnt32' is not recognized as an internal or external command,
operable program or batch file.

                                              
1:
2:
3:

Select allOpen in new window

 

by: DornerDiamondsPosted on 2009-09-10 at 09:23:22ID: 25301768

yes

 

by: QlemoPosted on 2009-09-10 at 09:32:48ID: 25301864

Jimpen seems to have hit it. You do not have winnt32 . No wonder, it is part of Windows OS installation media, and only needed when you want to install a Windows OS from another Windows OS.

 

by: msacc97Posted on 2009-09-10 at 09:47:05ID: 25302006

DornerDiamonds

At least looks like winnt32.exe is not in root of C drive.
Try to find it  using Start -> Search -> ...
If succeeded include full path to it (for examle D:\i386\WINDOWS\....\winnt32.exe /copydir...)

 

by: jimpenPosted on 2009-09-10 at 10:04:49ID: 25302181

from the C:> prompt do a

dir winnt*.exe /s

I'm betting it isn't on the machine. I think one of the recommendations when building WinXP machines was to delete it.

I think it had issues and the is why they replaced it with the CMD.exe.

 

by: msacc97Posted on 2009-09-10 at 10:19:49ID: 25302319

jimpen,

My understanding is that your command will search in drive C only..
BTW DornerDiamonds did not tell us what OS he/she has..

 

by: msacc97Posted on 2009-09-10 at 10:30:01ID: 25302418

jimpen,

My understanding is that your command will search in drive C only..
BTW DornerDiamonds did not tell us what OS he/she has..

 

by: jimpenPosted on 2009-09-10 at 10:35:52ID: 25302467

>> My understanding is that your command will search in drive C only..

True. But the IIRC the winnt executables should reside under the C:\WINNT or C:\WINDOWS directories. Either the the system or system32 directories.  If the WINNT(s) exist the should have been in the folders listed in the PATH variable anyway.

>> BTW DornerDiamonds did not tell us what OS he/she has..

Another good point. I think the WINNT32 was NT 4.0 and below. Ate least I can't find it on our sole 2000 server and not on my WinXP.

 

by: DornerDiamondsPosted on 2009-09-10 at 11:29:32ID: 25302941

The client machine I am using is Windows Vista

 

by: msacc97Posted on 2009-09-10 at 11:47:07ID: 25303088

In the link I provided in my first message it is stated that:

You can start Setup by using the Winnt32.exe command line tool from Windows 95, Windows 98, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Professional, and the Windows Server 2003 family.

You will not be able to run it on Vista. You will get error message type of: "The program is blocked due to compatibility issues"

 

by: DornerDiamondsPosted on 2009-09-10 at 12:21:22ID: 25303347

some reason copy dir doesn't work for me on XP or Vista in cmd. XCopy and robocopy work though. Thanks for all the help. I am trying to get use to the DOS command sequence and I am trying to get back to studying for 70-270 Microsoft test.

 

by: DornerDiamondsPosted on 2009-09-10 at 12:22:25ID: 31626798

everything works except for copydir

 

by: msacc97Posted on 2009-09-10 at 12:31:21ID: 25303429

Thank you for the points and good luck with your test! )

PS For WinXP winnt32.exe could be found on installation disk in i386 folder or in C:\Windows\i386 folder (if exists). Just set correct full path to it in command line.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...