tdhumal
asked on
Problem running batch script in command prompt
Hi Everyone,
I am running similar batch script on 2 different PC's. It works on one and does not work on other. Any idea why command prompt behave different?
Thanks,
I am running similar batch script on 2 different PC's. It works on one and does not work on other. Any idea why command prompt behave different?
Thanks,
Can you please post the two scripts you running so that we can help you?
ASKER
I will post them in few minutes
Two suggestions - the scripts, and more points :-)
ASKER
The scripts are same and the script works good in one PC and does not on other.
Unfortunately I cannot post the script. I even compared the script on both PC's. They are identical, but it does not work on on PC.
Is there any setting issues with command prompt??
Just wanted to get some ideas
Unfortunately I cannot post the script. I even compared the script on both PC's. They are identical, but it does not work on on PC.
Is there any setting issues with command prompt??
Just wanted to get some ideas
The idea with seeing the script is knowing what to aim for.... are the PC's the same OS, do they have the same PATH variable, is the script referring to any other files, exe's. Do the users have the same NTFS or share rights, are the TEMP variables going to the same place. Do they have the same network drives mapped? Are CD / hard / flash drives given the same letters.... All or none of which may be relevant depending upon what the script is doing you see.
ASKER
Thanks for your reply. I can check the OS and PATH values of the PC where the script does not work.
That is the only things which can be different.
I can post my findings tomorrow after 11:00am eastern time
That is the only things which can be different.
I can post my findings tomorrow after 11:00am eastern time
You need to post the script. Commands have different switches that are valid under different operating systems and sometimes even different behaviors under different operating systems.
We need to see what commands you are running, how you are parsing their output, what switches you are using, and know which operating systems you are running on in order to help you.
ALSO you are being very stingy with the points you have no limit of points you should increase the point value of this question to 500.
We need to see what commands you are running, how you are parsing their output, what switches you are using, and know which operating systems you are running on in order to help you.
ALSO you are being very stingy with the points you have no limit of points you should increase the point value of this question to 500.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Hi,
If you are not able to post the script, atleast let us know what result are you in search of..
This can help us in helping you.
If you are not able to post the script, atleast let us know what result are you in search of..
This can help us in helping you.
:-)
Hi tdhumal
f your batch files contain some confidential information, would it be possible to maybe replace the confidential parts of the batch files with some non-confidential words or names and attach them as *.txt files.
It would be very, very useful for us to see the scripts rather than just making guesses about what could be wrong.
Bill
f your batch files contain some confidential information, would it be possible to maybe replace the confidential parts of the batch files with some non-confidential words or names and attach them as *.txt files.
It would be very, very useful for us to see the scripts rather than just making guesses about what could be wrong.
Bill
@BillDL
:-)
~bp
:-)
~bp
ASKER
echo off helped me get my problem fixed
Great, glad that helped you get it sorted out.
~bp
~bp
ASKER
Thanks to all the other responders. I really appreciate it