|
| 22 Oct 2012 03:27 PM |
I've been learning some batch lately, it's pretty neat. Especially at school ;) I was wondering though, is there a way to - once in Command Prompt - to code as an admin? In some areas I get access denied and know that if running as an administrator that wouldn't happen. That'd be great if someone could tell me if there's a way or not. Thanks
P.S. If you're wondering how to unlock Command Prompt at school, follow these directions. 1. Open Notepad 2. Just type 'start'. 3. File > Save As > cmdstartup.bat (File Type: All) 4. Double click it, and command prompt will pop up. For some schools it may be different or not work at all.
|
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 22 Oct 2012 03:29 PM |
| Until a teacher caches you. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 03:30 PM |
I know this may be unhelpful to you as a starting programmer, but in the C language there is a system() function that allows you to pass unfiltered CMD/Batch commands.
However this requires pre-compiled code. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 03:31 PM |
"Until a teacher caches you"
They're going to make a copy of you and store it in their database?
bah dum tss |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 22 Oct 2012 03:32 PM |
internet monitoring filters and other group policy things.
-> group audit log |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 03:32 PM |
| What would that require? An IDE for C? Nice joke btw. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 03:33 PM |
| Nonono, it was a joke, you wrote caches instead of catches. Don't worry xD |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 03:35 PM |
@Epic
Yes, I think I used Visual C++ (it can compile C also)
Just write your program and save it as [name].c and then open the command prompt window and type in cl C:\path\[name].c
This should give you an executable C program in the same folder as the source code. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 03:37 PM |
| What does the command cl do? Is this the only way? Because I probably won't end up downloading Visual C++ on a school computer. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 03:40 PM |
cl is the C compiler program that comes with visual studio. I don't know much about the background of it and if it can work natively without visual studio.
Google "mingw", it's a minimalistic tool that does the same thing. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 22 Oct 2012 03:45 PM |
My school computers block Batch files, so I can't use them, but I know how to get into the C:\ drive and use somthing similar to cmd.exe C:
My school computers run Windows XP Professional, and the file I use IE to get into the C:\ drive, and then find cmd.pcf and use that as command prompt. It works a treat! Until the school technician finds out. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 03:49 PM |
| My school technicians blocked everything when I joined the school. Funny that. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 22 Oct 2012 03:50 PM |
Yeah.. School technicians are just afraid that the kids will find somthing bad that will ruin the computer so they block everything C:
If they don't want the computers broken, they should just block them!
C: |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 03:55 PM |
| @digpoe; Can your school even save batch files? My schools lets you save them, but when you open them it only works for a split second then it closes. But not if you just put 'start' in a batch file. At least for my school. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 22 Oct 2012 03:57 PM |
In my school you can't save batch files. But you can open them - but cmd.exe comes up with "Command prompt has been blocked by your system administrator. Press any key to continue..." That's why I use cmd.pcf C:
I got a copy of it on my USB drive, so I can use command prompt at school. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 03:59 PM |
| My school used MacBook Pro's, Chromebook's, iPad's, and iBook's. On the Macs, the only thing they restrict is playing with the dock assortment and changing just a few settings. I've never used the iPad's there so I wouldn't know. The Chromebook's have no restrictions on it. They just tell us to use it as Guest. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 04:05 PM |
| Microsoft Windows > Macintosh Computers |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 04:10 PM |
| Macintosh's are easier to control and block certain things than Windows. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 04:10 PM |
@epic
true dat
Issue with Windows computers is that they are so much more mainstream that they are more vulnerable to attack, and therefore more loopholes must exist. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 22 Oct 2012 04:14 PM |
Well. I just discovered a way I could be able to get onto Command Prompt on a school Computer C:
SAFE MODE! |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 04:16 PM |
ew
1024x768 resolution in safe mode
1080p plzplz |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 04:22 PM |
| Macs are just more shiny, thus more expensive :P |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 22 Oct 2012 06:05 PM |
| If your school has Win 7, try shift+right click>Open command window here. I haven't tried it (because it isn't blocked at my school). Not sure if it works on anything before Win7. My school does have a C++ IDE that I can use, though. :P |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 06:35 PM |
"Until a teacher caches you."
Haaaa! Nice one :P |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 07:18 PM |
@pwned;
What do you mean by 'Open command window here'? |
|
|
| Report Abuse |
|
|