?
Solved

Command file help on Windows 2003 Exterprise 64bit serer

Posted on 2010-09-14
4
Medium Priority
?
381 Views
Last Modified: 2012-05-10
I run this same cmd file on my windows 2003 R2 Standard server with no problem

But when I run it on my Windows 2003 R2 Enterprise 64bit editon this happens


C:\Util>del c:\util\*.log

C:\Util>del c:\util\report.txt

C:\Util>xcopy "C:\Documents and Settings\Administrator.OUR\Local Settings\Applic
ation Data\Microsoft\Windows NT\NTBackup\data\*.log" c:\util
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup01.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup02.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup03.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup04.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup05.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup06.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup07.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup08.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup09.log
9 File(s) copied

C:\Util>dir c:\util\*.log /b /od  1>c:\util\ordered.txt

C:\Util>echo Tue 09/14/2010  1>c:\util\copylogx.txt

C:\Util>echo 21:26:18.32  1>>c:\util\copylogx.txt

C:\Util>type c:\util\copylog.txt  1>>c:\util\copylogx.txt
The system cannot find the file specified.

C:\Util>for /F "skip=9" %1 IN (ordered.txt) do rename %1 current.log

C:\Util>rem current.log is Unicode, so won't go in a text message

C:\Util>type c:\util\current.log  1>c:\util\.log
The system cannot find the file specified.

C:\Util>type c:\util\current.log  1>c:\util\report.txt
The system cannot find the file specified.

C:\Util>rem above converts current.log from Unicode to ascii

C:\Util>pause
Press any key to continue . . .


any ideas

Thanks
Tom
0
Comment
Question by:Inserachof
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
simonseztech earned 2000 total points
ID: 33678890
Well I just take some of my log and execute the type command and it work. I tested it on my Windows 2003 R2 x64 SP2.
0
 
LVL 7

Assisted Solution

by:simonseztech
simonseztech earned 2000 total points
ID: 33678896
http://www.tipandtrick.net/2008/how-to-open-and-run-32-bit-command-prompt-in-64-bit-x64-windows/To start and open a 32-bit command prompt, follow these steps:   1. Click Start.   2. Type %windir%\SysWoW64\cmd.exe in Start Search box.      Alternatively, press Win + R keys (or type Run in Start Search) to open Run dialog, and type %windir%\SysWoW64\cmd.exe.   3. Press Enter.32-bit Command PromptIn 32-bit command prompt, the %programfiles% path variable will point to Program Files (x86) folder which stores all 32-bit binaries.Hope it help.
0
 

Author Comment

by:Inserachof
ID: 33678998
I tried that but it did not make any differance


C:\Util>del c:\util\*.log

C:\Util>del c:\util\report.txt

C:\Util>xcopy "C:\Documents and Settings\Administrator.OUR\Local Settings\Applic
ation Data\Microsoft\Windows NT\NTBackup\data\*.log" c:\util
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup01.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup02.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup03.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup04.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup05.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup06.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup07.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup08.log
C:\Documents and Settings\Administrator.OUR\Local Settings\Application Data\Micr
osoft\Windows NT\NTBackup\data\backup09.log
9 File(s) copied

C:\Util>dir c:\util\*.log /b /od  1>c:\util\ordered.txt

C:\Util>echo Tue 09/14/2010  1>c:\util\copylogx.txt

C:\Util>echo 23:40:36.34  1>>c:\util\copylogx.txt

C:\Util>type c:\util\copylog.txt  1>>c:\util\copylogx.txt
The system cannot find the file specified.

C:\Util>for /F "skip=9" %1 IN (ordered.txt) do rename %1 current.log

C:\Util>rem current.log is Unicode, so won't go in a text message

C:\Util>type c:\util\current.log  1>c:\util\.log
The system cannot find the file specified.

C:\Util>type c:\util\current.log  1>c:\util\report.txt
The system cannot find the file specified.

C:\Util>rem above converts current.log from Unicode to ascii

C:\Util>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Administrator.OUR\Application Data
ClusterLog=C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
COMPUTERNAME=TGCS005
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Administrator.OUR
LOGONSERVER=\\TGCS002
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
Path=C:\util\Febooti\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:
\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft\Exchange Ser
ver\bin;C:\Program Files\Microsoft\Exchange Server\Scripts
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=EM64T Family 6 Model 30 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1e05
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
PROMPT=$P$G
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\ADMINI~1.OUR\LOCALS~1\Temp
TMP=C:\DOCUME~1\ADMINI~1.OUR\LOCALS~1\Temp
USERDNSDOMAIN=OUR.NETWORK.TGCSNET.COM
USERDOMAIN=OUR
USERNAME=Administrator
USERPROFILE=C:\Documents and Settings\Administrator.OUR
windir=C:\WINDOWS

C:\Util>pause
Press any key to continue . . .


When I did a set doing the start run %windir%\syswow64\cmd.exe

I got   ProgramFiles(x86)=C:\Program Files (x86)


Which is the same when I do cmd from the start run

or when I double click on the cmd file as you can see I added a set to the cmd file to see what it was will it ran

the type commands are having an issue in 64bit

not sure how to get this to work

Thanks

Tom
0
 

Author Closing Comment

by:Inserachof
ID: 33684013
now working
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question