at the following path
\\ncsusnasent02.na.jnj.com\its_diq_na_win_dev\PowerCenter\infa_shared\WCPIT_BIO_EDW\SrcFiles\DDDMD\DDD.CLI026.WK0933.DDDMR45.001.head
I have one file
DDD.CLI026.WK0933.DDDMR45.001.head
if i open this file
i get data as following(in a single line)
HEADER0101IMS HEALTHDMD Weekly D DD.CLI026.WK0933.DDDMR4...
I'm trying to redirect all output (stdout + stderr) of a dos command to a single file:
C:\>dir 1> a.txt 2> a.txt
The process cannot access the file because it is being used by another process.
Is it possible, or should I just redirect to two separate files?
...
I'm trying to do some things during the pre-build phase of a visual studio project. Specifically, I'm trying to execute some commands on all *.resx files within the project. Here is what I have but it doesn't work when the files/directory path have a space in them. How do I get around these spaces?
for /f %%a in ('dir /B /S *.resx') ...
I often use the net user command to have a look at AD groups for a user:
net user /DOMAIN <username>
This works well, however the group names are truncated to around 20 characters. And in my organization, most group names are much longer than this.
Does anyone know of a way to get non-truncated AD groups through the command line?
...
Hi,
I'm using the FINDSTR function to filter text files, but it's failling on extended ASCII characters.
I tried using the CharToOEM function, but I still have characters such as 'à', which FINDSTR doesn't seems to recognize.
I want to use FINDSTR because the text files I work with are 100MB big, so I need something fast.
Does a functi...
How do you time a script in the DOS prompt?
The *NIX equivanlent would be:
$ time myscript
real 0m0.886s
user 0m0.846s
sys 0m0.031s
$
Is there a DOS equivalent to this? Thanks
...
Duplicate data removal using Perl called within via a batch file within Windows
A DOS window in Windows called via a batch file.
A batch file calls the Perl script which carries out the actions. I have the batch file.
The code script I have works duplicate data is removal so long as the data file is not too big.
The problem that requires...
Example:
for /? | if (this stream has word "the" in it) {echo the line with "the"}
I need somehow to analyze the text in the redirected stream.
...
I am currently running a command and it is producing the compressed file. I need to store that zip file into c:\windows\abc.zip. Does anyone know how to do that?
MY current command is something like this:
cd %path% cdx.exe
I have tried specifying the path after cdx.exe but it doesn't store in that path.
It is running the exe but stori...
The Problem
I'm having a problem with a DOS batch file and labels.
I keep getting this error:
The system cannot find the batch label
specified
What I've tried
Two computers; a WindowsXP and a 2003 Server.
Made sure it was encoded as ASCII
Editted the hex code for the line continuation characters. Tried replacing all with CR ,...
I have a table called Field in my SQL Server database. The table has a field called "Units".
I have a batch script which inserts a lot of things into here using OSQL and one of the things entered is the pound sign (£). When OSQL runs the queries, it converts the £ sign to -ú instead.
What I need to have is a separate batch file which ...
Hi
I would like to know a way of deleting a read only file using a batch file or a command.
Suppose i have a dll abc.dll and i am trying to delete this dll using the following command in a batch file del "C:\test\abcd.dll". It does not allow me to do that and it throws access denied message. However if i change the read only attribute ...
Is there any command to convert from upper case to lower case.
I would like to convert windows system variable %USERNAME% to lower
case in a single command.I am not using NT.
Thanks in advance
...
I'm trying to use a batch file to help setup a build project.
As part of that process I need to copy a lot of files from a temporary directory:
%temp%\wcu to a new directory in the %programfiles% directory.
I am using the following command:
xcopy %temp%\wcu\dotnetframework\*.* %programfiles%\"Microsoft SDKs\Windows\v6.0A\Bootstrapper\P...
I have the unfortunate task of doing (minimal) maintenance work on two legacy applications developed in DBIII+/Clipper '87.
I have full access to source and a minimal toolchain to recompile the application when needed, but I am not allowed to reimplement it from scratch due to various (mostly psychological) reasons from the main user.
...
I'm looking to run a batch file on windows xp professional which creates a system odbc data source for a sql server connection. I can do that with:
ODBCCONF.exe CONFIGSYSDSN "SQL Server" "DSN=Kappa| Description=Kappa Data Source | SERVER=10.100.1.10 | Trusted_Connection=Yes | Database=subscribers"
However I need a way to set the sql ...
I am trying to figure out how to "test for connectivity" to a SQL Server database from DOS. If the connection fails I need to detect the failure.
sqlcmd -Q "select 'a test'" -S .\SQLEXPRESS
You'll notice that that command doesn't return a true/false value. Also, if the instance doesn't exist, it times out. I want something like th...
I am calling a batch file inside a nant script and would like to get the value ( a string of 5 characters) return back to the nant script and continue the nant script.
Please suggest how this can be done. Thanks in advance.
...
i want to write a batch which will have the same effect as follows.
Here's what I do manually (which I want to program to do automatically):
1) START -> Run -> cmd (get command prompt)
2) ipconfig /release
3) START -> Connect to -> Show all connections
4) Right-click "Local Area Network" and click "Properties"
5) Highlight "Internet Pro...
I have a number stored in dl, and I need this to work for numbers up to three digits? Here is the working code for digits 0-9.
WriteNumber:
;; print out number in dl
push ax
push dx
add dl,"0"
mov ah,02h ; printing one char
int 21h
pop dx
pop ax
ret
For example, for two digits. I could take dl/10. And then print out the result and th...