Solved

Command file help on Windows 2003 Exterprise 64bit serer

Posted on 2010-09-14
4
371 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 500 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 500 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

734 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