Thread: what can i type into msdn to bring up all the system commands

  1. #1
    Shadow12345
    Guest

    what can i type into msdn to bring up all the system commands

    I want to know some of the system commands under windows, i.e executing programs and copying files, but i type 'system commands' in msdn and it doesn't want to bring them up.

  2. #2
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    ShellExecute opens files

    and for the rest look under the platform sdk i believe
    PHP and XML
    Let's talk about SAX

  3. #3
    Shadow12345
    Guest
    Thanks waldo, that works

    I want to be able to copy one of the glut (opengl stuff) dlls to the system folders at school without having to ask for permission, I don't think using shell/system (whatever you call them) commands will end up working though, but it's worth a try.

  4. #4
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    >system commands' in msdn and it doesn't want to bring them up.

    No it brings up what ever it wants. Usually stuff to do with Fox Pro, J++, or Word 97 macros.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by Shadow12345
    Thanks waldo, that works

    I want to be able to copy one of the glut (opengl stuff) dlls to the system folders at school without having to ask for permission, I don't think using shell/system (whatever you call them) commands will end up working though, but it's worth a try.
    Copy this code into notepad (changing the filename and path) and save as "Copy.js". Then double click...

    Code:
    try{
    	var oFs = new ActiveXObject("Scripting.FileSystemObject");	
    	var oFile = oFs.GetFile("filename"); //Or whatever the file	
    	oFile.Copy("path"); //Or whatever the folder
    	WScript.Echo("File copied");
    	oFile = null;
    	oFs = null;
    }
    catch(e){
    	WScript.Echo("Error running script!!");
    	WScript.Quit(1);
    }
    Remember that if you are using a path, then use "\\" instead of "\" - just as in C++

  6. #6
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Fordy is definately a jack of all trades.

  7. #7
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by golfinguy4
    Fordy is definately a jack of all trades.
    "Jack of all trades, Master of none"

  8. #8
    Shadow12345
    Guest
    That's cool, what exactly is that? Is it a javascript file?? What other cool stuff can you do with it? I know nothing about javascript

  9. #9
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    well, at my school there is a c++ compiler for the c++ class. i made a simple program using system("cmd") to open the command prompt. from there i can do anything, just use the copy command. and also, if you rename an exe that is restricted to something like write.exe or sol.exe i'm able to run it (must do in command prompt), thats just something you might find fun at school

  10. #10
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by Shadow12345
    That's cool, what exactly is that? Is it a javascript file?? What other cool stuff can you do with it? I know nothing about javascript
    Its a M$ derivative of JavaScript that they call JScript (althought there are very few differences)......it works via WSH (Windows Scripting Host) as does VBScript and there's a lot you can do with it

  11. #11
    Shadow12345
    Guest
    well, at my school there is a c++ compiler for the c++ class. i made a simple program using system("cmd") to open the command prompt. from there i can do anything, just use the copy command. and also, if you rename an exe that is restricted to something like write.exe or sol.exe i'm able to run it (must do in command prompt), thats just something you might find fun at school
    Its a M$ derivative of JavaScript that they call JScript (althought there are very few differences)......it works via WSH (Windows Scripting Host) as does VBScript and there's a lot you can do with it
    cool thank you guys. You're awesome!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do you resolve this error?
    By -EquinoX- in forum C Programming
    Replies: 32
    Last Post: 11-05-2008, 04:35 PM
  2. Can you check what is wrong with this code
    By Ron in forum C++ Programming
    Replies: 4
    Last Post: 08-01-2008, 10:59 PM
  3. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  4. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM