Solved

Command file help on Windows 2003 Exterprise 64bit serer

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

726 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