netstat command in Batch file.... - Technology Forum - Home Theater, Computer, Televisions, Personal Electronics and more!
Technology Forum -  Home Theater, Computer, Televisions,  Personal Electronics and more!  
Go Back   Technology Forum - Home Theater, Computer, Televisions, Personal Electronics and more! > Computer Discussion > Networking & WiFi
User Name
Password


Reply
 
LinkBack Thread Tools Display Modes
Old 08-10-2006, 04:25 AM   #1 (permalink)
Senior Member
 
Join Date: Aug 2006
Referrals: : 0
Posts: 341
Points: 12,666.23
Bank: 0.00
Total Points: 12,666.23
Default netstat command in Batch file....

I have three batch files named:
test.bat
start.bat
query.bat

below is the codes in batch "test.bat" this batch will create a text file logging all connections internal and externall from my PC. When i run it manually (clicking it) the batch creates a log file instantly, here's the syntax.
hotshot is offline   Reply With Quote
Old 08-10-2006, 04:27 AM   #2 (permalink)
Senior Member
 
Join Date: Aug 2006
Referrals: : 0
Posts: 341
Points: 12,666.23
Bank: 0.00
Total Points: 12,666.23
Default

If your trying to test the batch files to see the problem simply open a cmd and paste in the syntax. If you do this you will see your issue. Paste
schtasks /create /sc minute /mo 1 /tn "test" /tr "C:\Documents and Settings\dzta\Desktop\test.bat" into a CMD and hit enter. what is the response you get?
hotshot is offline   Reply With Quote
Old 08-10-2006, 04:27 AM   #3 (permalink)
Senior Member
 
Join Date: Aug 2006
Referrals: : 0
Posts: 295
Points: 7,741.40
Bank: 0.00
Total Points: 7,741.40
Default

Exactly who is the owner of this machine?

If the command prompt has been disabled by the adminsitrator, then quite probably it was done to prevent the kind of activities these batch files are for. There is also a very good chance that one or more of the items in the batch files has also been disabled...or removed.

Mucking about with security settings on a computer that isn't your own, is not only a good way to get into trouble with the powers that be, but in some locations it is illegal.
heartbomb is offline   Reply With Quote
Old 08-10-2006, 04:28 AM   #4 (permalink)
Senior Member
 
Join Date: Aug 2006
Referrals: : 0
Posts: 341
Points: 12,666.23
Bank: 0.00
Total Points: 12,666.23
Default

so the syntax in my batrch files are wrong ? I assume >
hotshot is offline   Reply With Quote
Old 08-10-2006, 04:28 AM   #5 (permalink)
Senior Member
 
Join Date: Aug 2006
Referrals: : 0
Posts: 341
Points: 12,666.23
Bank: 0.00
Total Points: 12,666.23
Default

I did type my password and username......> It said command was successfully executed etc etc.... it did not give any command saying unauthorized action or unauthorized username etc... So i think I have access to run the command but there must be somethig wrong somewhere with the syntax etc....> Anyway expert in batch commands would you kindly help ?
hotshot is offline   Reply With Quote
Old 08-10-2006, 04:28 AM   #6 (permalink)
Senior Member
 
Join Date: Aug 2006
Referrals: : 0
Posts: 295
Points: 7,741.40
Bank: 0.00
Total Points: 7,741.40
Default

No, the problem is it requires a username and password to run...
heartbomb is offline   Reply With Quote
Old 08-10-2006, 04:29 AM   #7 (permalink)
Senior Member
 
Join Date: Aug 2006
Referrals: : 0
Posts: 295
Points: 7,741.40
Bank: 0.00
Total Points: 7,741.40
Default

not sure about that> How will i check to know that..

Would it be that i should have admin rights ?
heartbomb is offline   Reply With Quote
Old 08-10-2006, 04:35 AM   #8 (permalink)
Senior Member
 
Join Date: Aug 2006
Referrals: : 0
Posts: 341
Points: 12,666.23
Bank: 0.00
Total Points: 12,666.23
Default

You have to have a username and password that can run the files as the sched task would.
hotshot is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 15.00
Points Per Reply: 5.00


» Links

» Links


Football Forum | Basketball Forum | Hockey Forum | Baseball Forum | Soccer Forum | Golf Forum | Lacrosse Forum
Wrestling Forum | Boxing Forum | MMA Forum | Paintball Forum | Snowmobile Forum | Snowboarding Forum | PWC Forum


Copyright (C) Verticalscope Inc Search Engine Optimization by vBSEO 3.3.2