Solved

Command file help on Windows 2003 Exterprise 64bit serer

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 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