| View previous topic :: View next topic |
| Author |
Message |
Kaingon Expert Cheater
Reputation: 0
Joined: 03 Oct 2007 Posts: 191 Location: Canada
|
Posted: Wed Mar 26, 2008 3:37 pm Post subject: Abit of VB Coding (I think) |
|
|
| Could someone tell me the run command I can just type into a notepad and turn into an exe? I just need to know what the Run command is, but if soemone can give me a complete guide, that would be nice.
|
|
| Back to top |
|
 |
jason744 Grandmaster Cheater
Reputation: 0
Joined: 25 Nov 2007 Posts: 638
|
Posted: Wed Mar 26, 2008 3:54 pm Post subject: |
|
|
since when could you do that? Other than vbscript if that's what you mean.
If you mean run an app I just use Shell("Path", vbNormalFocus).
|
|
| Back to top |
|
 |
buzzah Grandmaster Cheater
Reputation: 0
Joined: 21 Nov 2007 Posts: 787 Location: MSN
|
Posted: Wed Mar 26, 2008 4:06 pm Post subject: |
|
|
If you are wanting to use the run command to get into the command prompt just put in a notepad file...
start.command.com
Then save it as start.bat. You can open it into the command prompt now.
_________________
PM me if you want an AQ/MQ/DF upgrade card! |
|
| Back to top |
|
 |
MrQuidam Advanced Cheater
Reputation: 0
Joined: 15 Mar 2008 Posts: 78
|
Posted: Wed Mar 26, 2008 10:20 pm Post subject: |
|
|
If you mean how to run a command, just use
Shell ("cmd.exe")
You can replace cmd.exe with any command. Well, at least most. I don't think commands like cd work with it.
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Wed Mar 26, 2008 10:26 pm Post subject: |
|
|
with a batch file its
start splication path
_________________
|
|
| Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Wed Mar 26, 2008 10:28 pm Post subject: |
|
|
ok he write a vb program in notepad right? he wants to compile it, just google vb compiler
_________________
|
|
| Back to top |
|
 |
Faggot2 Advanced Cheater
Reputation: 0
Joined: 18 Jan 2008 Posts: 82
|
|
| Back to top |
|
 |
Bannedjsin95 Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Oct 2007 Posts: 1499
|
Posted: Wed Mar 26, 2008 10:45 pm Post subject: |
|
|
*.bat
information improvised from this thread lol
this should work(i always use @echo off to make the look cleaner)
| Code: |
@echo off
start calc //calc is calculator, located in system32 so it's a command)
pause
goto exit //idk if this works, but .bats(batches) automatically close when there are no more commands
|
if you need to execute a .exe that's NOT a command
CD: change directory
%HOMEPATH%="C:\Documents and Settings\your name\
The drive name "C" can different, depending on where Windows is installed.
| Code: |
@echo off
cd "%HOMEPATH%\Desktop"
start cakepub3.exe
pause
|
Copy and Paste it, replace directories and .exe name with what you want.
rename it to whatever.bat
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Wed Mar 26, 2008 10:46 pm Post subject: |
|
|
| Bannedjsin95 wrote: | *.bat
information improvised from this thread lol
this should work(i always use @echo off to make the look cleaner)
| Code: |
@echo off
start calc //calc is calculator, located in system32 so it's a command)
pause
goto exit //idk if this works, but .bats(batches) automatically close when there are no more commands
|
if you need to execute a .exe that's NOT a command
CD: change directory
%HOMEPATH%="C:\Documents and Settings\your name\
The drive name "C" can different, depending on where Windows is installed.
| Code: |
@echo off
cd "%HOMEPATH%\Desktop"
start cakepub3.exe
pause
|
Copy and Paste it, replace directories and .exe name with what you want.
rename it to whatever.bat |
Calc isn't a command... it's a program.
_________________
| haxory' wrote: | can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too. |
|
|
| Back to top |
|
 |
SF I'm a spammer
Reputation: 119
Joined: 19 Mar 2007 Posts: 6028
|
Posted: Thu Mar 27, 2008 12:37 am Post subject: |
|
|
| Xenophobe wrote: | | Bannedjsin95 wrote: | *.bat
information improvised from this thread lol
this should work(i always use @echo off to make the look cleaner)
| Code: |
@echo off
start calc //calc is calculator, located in system32 so it's a command)
pause
goto exit //idk if this works, but .bats(batches) automatically close when there are no more commands
|
if you need to execute a .exe that's NOT a command
CD: change directory
%HOMEPATH%="C:\Documents and Settings\your name\
The drive name "C" can different, depending on where Windows is installed.
| Code: |
@echo off
cd "%HOMEPATH%\Desktop"
start cakepub3.exe
pause
|
Copy and Paste it, replace directories and .exe name with what you want.
rename it to whatever.bat |
Calc isn't a command... it's a program. |
'calc' itself is a command. Calculator is a program.
_________________
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Thu Mar 27, 2008 12:48 am Post subject: |
|
|
| SaviourFamily wrote: | | Xenophobe wrote: | | Bannedjsin95 wrote: | *.bat
information improvised from this thread lol
this should work(i always use @echo off to make the look cleaner)
| Code: |
@echo off
start calc //calc is calculator, located in system32 so it's a command)
pause
goto exit //idk if this works, but .bats(batches) automatically close when there are no more commands
|
if you need to execute a .exe that's NOT a command
CD: change directory
%HOMEPATH%="C:\Documents and Settings\your name\
The drive name "C" can different, depending on where Windows is installed.
| Code: |
@echo off
cd "%HOMEPATH%\Desktop"
start cakepub3.exe
pause
|
Copy and Paste it, replace directories and .exe name with what you want.
rename it to whatever.bat |
Calc isn't a command... it's a program. |
'calc' itself is a command. Calculator is a program. |
When you type in calc it opens calc.exe, which goes for pretty much anything except "echo," etc.
_________________
| haxory' wrote: | can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too. |
|
|
| Back to top |
|
 |
|