http://calcg.org/newlogo2.png Not Logged in.
Login | Register

General Discussion Board \ Computer Programming \ CMD

Click here to log in (you must be logged in to post comments).

AuthorComment
Vectris
Ultralisk
avatar
Posted: 27 Sep 2007
21:00 GMT
Total Posts: 375
ive been fooling around with cmd command prompt and was wondering if anyone knew a easy way to pause program execution for x amount of time, i already tried choice and my version of cmd doesn't have it, also ping is annoying as it displays random crap after trying to connect to the nonexistent network, i want a clean easy to use pause
Zachary940
Wraith
avatar
Posted: 28 Sep 2007
12:01 GMT
Total Posts: 714
Just for the record the "crap" you see on ping is not crap. Get to know what it means and you will find it very handy.

To answer your question, I have a question. Why would you want to stop program execution?

I'm not trying to be a jerk just trying to figure out what you are doing or trying to do.


---
It is much easier to suggest solutions when you know nothing about the problem.
Vectris
Ultralisk
avatar
Posted: 28 Sep 2007
20:45 GMT
Total Posts: 375
well ik its important but if im just trying to make a timed pause it is considered crap
Zachary940
Wraith
avatar
Posted: 29 Sep 2007
12:06 GMT
Total Posts: 714
Yea I can see how it could be crap if it isn't what you want.

---
It is much easier to suggest solutions when you know nothing about the problem.
ryantmer
Wraith
avatar
Posted: 2 Oct 2007
21:04 GMT
Total Posts: 692
As in you want a program to pause for x amount of time? If this is the case, what language are y'all programming in?
threefingeredguy
Ghost
avatar
Posted: 3 Oct 2007
00:32 GMT
Total Posts: 1189
Batch file language.

---
Someone call for an exterminator?
Vectris
Ultralisk
avatar
Posted: 17 Oct 2007
15:47 GMT
Total Posts: 375
lol, i know its a low language and all, but i was trying to fool around with it
zarg
Dragoon
avatar
Posted: 18 Dec 2007
16:20 GMT
Total Posts: 67
I'm comming in late but you could always just ping yourself:
ping [computer's name] -n [time] >null

the ping part pings yourself
[computer's name] is your computers name(type hostname in cmd if you dont know what that is)
-n is the amount of times
[time] is how long
>null silences it so it doesn't display on the screen

Just because of those people:
I am not responisible for your actions dealing with command prompt or this command.

---
In most countries selling harmful things like drugs is punishable. Then howcome people can sell Microsoft software and go unpunished? (By hasku@rost.abo.fi, Hasse Skrifvars http://www.linuxweb.com/lw_quotes.html)
Vectris
Ultralisk
avatar
Posted: 21 Dec 2007
19:32 GMT
Total Posts: 375
well ive got a new questin

im trying to hack the computers at my school so i can log in as admin and go to w/e web site i want, ive done it at my house and it works if your account has amdin priviliges, what i do is use net user * to change pass to nothing, at school it doesn't work because of "error 5 insufficient privilges" or something, i already figured out how to get past the blocker that blocks CMD to begin with, i make a .bat file that is command.com, don't know how this works but i found out online, any1 know how to get admin priviliges useing CMD from a restricted user so i can change admin pass?

even better i want to find out what the pass is so i can use it w/out being discovered, any1 know command for displaying user password?

net user [username] brings up a list of stuff and it tells u if it's got a pass, but not what it is
banjo2E
Wraith
avatar
Posted: 21 Dec 2007
19:53 GMT
Total Posts: 689
Use a proxy. It's not illegal.

---
http://uncyclopedia.org/wiki/User:Administrator <------ WOOOOO!!!!!
zarg
Dragoon
avatar
Posted: 22 Dec 2007
10:18 GMT
Total Posts: 67
Whats a proxy?

---
In most countries selling harmful things like drugs is punishable. Then howcome people can sell Microsoft software and go unpunished? (By hasku@rost.abo.fi, Hasse Skrifvars http://www.linuxweb.com/lw_quotes.html)
haveacalc
Guardian
avatar
Posted: 22 Dec 2007
12:05 GMT
Total Posts: 1111
"lol, i know its a low language and all, but i was trying to fool around with it"

Batch is not a low-level language. In fact, it's interpreted.

If I were you, I would find a reputable site on a school computer that's blocked, ask a librarian to bypass whatever security you have at your school for that site, watch the keyboard as she taps in the required password, and repeat those last two steps with other librarians until you have a good idea what to do. That would work for the system at my school, at least. Here, getting through the filter is just a matter of authentication, regardless of what user's logged on.

zarg: http://en.wikipedia.org/wiki/Proxy_server

---
-quoted directly from most movies that don't exist (and some that do).
Vectris
Ultralisk
avatar
Posted: 23 Dec 2007
09:24 GMT
Total Posts: 375
a proxy is actually used for and against site restrictions, our school uses a proxy to restrict any site with the word "game" in the url, but a proxy can be used to acces blocked sites through a alternate ip, i think...

anyways i tried proxies and most of the proxy sites are already blocked, the few the i can get to either dont work, or freeze up cus they suck

haveacalc good idea, ive been trying to find the password for the admin through watching typing, but its different for me b/c u cant use a pss to access a site, im trying to get a pass to access the admin user, then get to a site

so no one knows how to get a non-restricted version of CMD to run on a restricted account so i can reset admin pass?

or at least how to view a user pass instead of changing it with CMD?
haveacalc
Guardian
avatar
Posted: 23 Dec 2007
09:48 GMT
Total Posts: 1111
Locally, all of the user passwords are in SAM. It's been two years since I've spent decent time on a non-Mac, so I forget which folder it's in. Generally, it's in one of the folders inside system32, I think. Anyways, I'm pretty sure that SAM's encrypted and inaccessible when Windows is booted up. I would try copying it to a disk or somewhere else on the hard drive when in DOS.

---
-quoted directly from most movies that don't exist (and some that do).
gulyman
Goliath
avatar
Posted: 9 Jan 2008
18:42 GMT
Total Posts: 144
cool I fooled around with CMD in school to. I had this one batch file that let me make messages pop up on other peoples computers, and say stuff like Error: Studidity levels exceeded!! Unfortunatly The school Admin caught me the week before school ended. My punishment was being banned for the rest of the year.
When I was talking with her in her office, she told me that their were tiers/levels of access in the school system. Student, teacher, local admin, central admin. My guess is that there are different levels of command promptness for each level. When I used a command prompt I got the same user restrictions thing as you did.
Here's another thing that I found, go start, programs, and double click on accesories. This should open up a file with the accessories icons in it.
Also try to map a network drive. In a your My Documents click on tools, and then map network drive. This will probably be blocked though.
One of the more risky things you can do is use a windows recovery password recovery cd. It requires you to shut down the computer and then boot it from CD though.
Happy Cracking.
Vectris
Ultralisk
avatar
Posted: 11 Jan 2008
17:20 GMT
Total Posts: 375
kool, but do you know the commands u used to make hte messages pop up? we also have a wireless network b/w the computers at our skool
gulyman
Goliath
avatar
Posted: 12 Jan 2008
23:22 GMT
Total Posts: 144
I found it as an example in a guide on how to write batch files. It had something about echo in it. I might have it in my email.
If you do start sending messages to peoples screens, they'll probably tell the admin. He can then tell which computer it came from, and under which username.
So the moral of the story is to always use an alternate username. My school has guest accounts called guest1, guest2, ect. One of them usually has the password, password.


EDIT: I know where the batch file is and I'll post it when I can get at it.
Vectris
Ultralisk
avatar
Posted: 13 Jan 2008
19:07 GMT
Total Posts: 375
ty, and our school has alt account to, but for some reason i couldn't get it to work last time, + i think the peeps at r school might not snitch
gulyman
Goliath
avatar
Posted: 14 Jan 2008
20:30 GMT
Total Posts: 144
@echo off
:A
Cls
echo MESSENGER
set /p n=User:
set /p m=Message:
net send %n% %m%
Pause
Goto A

That should be it.
Vectris
Ultralisk
avatar
Posted: 15 Jan 2008
17:24 GMT
Total Posts: 375
hmm, so the only variables i set are

User: were i enter username of computer i want to talk to?
and
Message: were i enter my message?

seems good, i just hope the computer knows how to send it using the wireless network b/w the other computers, or if it's over the internet i guess that works
Vectris
Ultralisk
avatar
Posted: 16 Jan 2008
14:39 GMT
Total Posts: 375
nvm about variable thing, i forgot that set prompts you for the variable

anyways i tried it and it didn't work

i think the problem is net send is only for users on that computer, but how can more than one person be on the same computer at once?

type in net user, and a list of the users on the computer comes up, on our school, only ladmin and SUPPORTXXXX_XX come up
gulyman
Goliath
avatar
Posted: 17 Jan 2008
20:23 GMT
Total Posts: 144
I would have no idea. Other then the connect the computers through a central source, networking is mostly magic to me. In the guide I was using, it said to try it so I did.
What do you mean by "username of the computer"? You are typing in the persons username, and not the name of the computer right?
Also, I used this on a Windows 2000 network. I don't know if it works on xp or anything.
Vectris
Ultralisk
avatar
Posted: 18 Jan 2008
12:49 GMT
Total Posts: 375
well i am using XP, but im entering the username not the comp name

we don't have the thing were theres avatars and stuff for peoples users, its a small box were you type in your username and pass
gulyman
Goliath
avatar
Posted: 18 Jan 2008
16:26 GMT
Total Posts: 144
I would have no idea then.If you ask your school admin under the pretense of learning batch file language at home, he might point you to some good resources for xp.
I think Microsoft is trying to phase out batch language. All part of their scheme to cater to the user, and forget about the programmer. I hear that Linux it better for programming and these sort of things. Mmmm, Linux.
Xphoenix
Ultralisk
avatar
Posted: 24 Jan 2008
20:35 GMT
Total Posts: 210
I googled and found this nifty little article, don't know if it'll help you though:
Click

[ EDIT ]
After testing around a little more, and reading that article, I think I can help you . . .
1. The service "Messenger" needs to be enabled and running (Start->Run->services.msc->Look for "Messenger") on BOTH computers (sender AND receiver of message, I think)
2. The command prompt command is "net send <IP or username> <message>", used in that BATCH file. The username is the username of someone on the network, and I think IP can send messages to anyone over the Internetz

---
~Xphoenix
Vectris
Ultralisk
avatar
Posted: 25 Jan 2008
15:28 GMT
Total Posts: 375
TYVM

thanks to gulyman and phoenix I can now send messages

only problem is that my school will most likely block service.msc

Pheonix do you know where this file is on a computer? because my school has taken the run button of off the start up menu. So i will need to find that file. I do know that "start services.msc" works through CMD. But my schools blocks CMD, so i have to save a .bat file with command.com in it to work. And the version of CMD that comes up is limited. So services.msc still might not come up.

anyways thank you both of u, i will be trying this next time I am at school (and the teachers aren't around)
Xphoenix
Ultralisk
avatar
Posted: 25 Jan 2008
17:51 GMT
Total Posts: 210
C:\WINDOWS\system32, but if they make that available to you, well, they might as well not block cmd.

---
~Xphoenix
Vectris
Ultralisk
avatar
Posted: 25 Jan 2008
22:17 GMT
Total Posts: 375
ya ive been in 32 b4 at school, it is funny they allow it, but u canot make any changes to the files so there just as well protected





Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright © 2002-2019 CalcG.org