Solved

Command file help on Windows 2003 Exterprise 64bit serer

Posted on 2010-09-14
4
347 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Learn about cloud computing and its benefits for small business owners.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now