Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Programming. | 3 guests |
Acmlm's Board - I2 Archive - Programming - Opening exe Files problem. | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
Violent J Melon Bug Level: 41 Posts: 247/749 EXP: 479154 For next: 991 Since: 05-05-04 From: Since last post: 8 hours Last activity: 8 hours |
| ||
When I duoble click a .exe, as in my c++ exe that opens in Command Line(DOS), it opens, displays, and terminates. I went through the switches and its clearly not setable there. So can anyone help me, so I dont have to "cd c:\blanlavboal\sdfn\asda\asd\afa" every time i want to test my exe? | |||
Ramsus Octoballoon Level: 19 Posts: 33/162 EXP: 34651 For next: 1126 Since: 01-24-05 From: United States Since last post: 39 days Last activity: 71 days |
| ||
I think Windows has a pause command, so you can just use the statement system("pause"); in your program to call it. You can also write a batch script that outputs the results to a text file, e.g. myprogram.exe > output.txt |
|||
Parasyte Bullet Bill Level: 35 Posts: 370/514 EXP: 267348 For next: 12588 Since: 05-25-04 Since last post: 104 days Last activity: 32 days |
| ||
It is better to manually open a command prompt and run the program from there than just double clicking on the executable's icon in explorer. Most command line programs require passing input arguments on the command line. So you REALLY need to get used to using the command prompt for such programs. Using system("pause"); will just add an unneeded [EG. annoying] delay for people who actually do use the command prompt properly. So do avoid it. |
|||
Ramsus Octoballoon Level: 19 Posts: 35/162 EXP: 34651 For next: 1126 Since: 01-24-05 From: United States Since last post: 39 days Last activity: 71 days |
| ||
Oh yeah, simple solution to your problem. Copy the shortcut for the Command Prompt onto your desktop, go the the properties, and set the starting or working directory to the directory with your programs. Then it's right there when you start. | |||
||bass Programmer Admin Level: 44 Posts: 253/817 EXP: 570813 For next: 40472 Since: 03-15-04 From: Salem, Connecticut Since last post: 26 days Last activity: 11 days |
| ||
Originally posted by ParasyteTrue but in beta testing it can't hurt just for simplicity. You should see how many anoying and weird things most people do within #ifdef _DEBUG blocks. |
|||
Squash Monster New Age Retro Hippie Togateiru Fohku Kohgeki!! GRUNGE no HAMSTER otona bite Peace love and turnpike! Level: 40 Posts: 550/677 EXP: 430507 For next: 10802 Since: 03-15-04 From: Maryland (of the Country Between Canada and Mexico) Since last post: 5 hours Last activity: 5 hours |
| ||
If you want to be able to open via double clickery, then just make a .bat file to run your program. | |||
neotransotaku Baby Mario 戻れたら、 誰も気が付く Level: 87 Posts: 2723/4016 EXP: 6220548 For next: 172226 Since: 03-15-04 From: Outside of Time/Space Since last post: 11 hours Last activity: 1 hour |
| ||
Originally posted by Sonicandtails Unless you hard code something into your program, this is the behavior of command-line programs since Win95. If you don't want to CD your day to your folder, just make a short cut to the command prompt, using the the folder your want to start in as the working directory. |
|||
Violent J Melon Bug Level: 41 Posts: 255/749 EXP: 479154 For next: 991 Since: 05-05-04 From: Since last post: 8 hours Last activity: 8 hours |
| ||
Well that solved that problem. Thank you, I dident think the shortcut would make a difference but it did ! Now. Since I got dazed looking at 6502 refrenses, im going back to learning C++ cuase it was kinda fun. |
|||
HyperLamer <||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 3809/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||
Originally posted by neotransotaku Or just copy and paste with quotes. cd "C:\Windows\Really\Long\DirectoryName\With Spaces\Blah" should work just fine. |
|||
Violent J Melon Bug Level: 41 Posts: 265/749 EXP: 479154 For next: 991 Since: 05-05-04 From: Since last post: 8 hours Last activity: 8 hours |
| ||
Heh that works too. Guess I should have seen that coming though... | |||
FreeDOS Lava Lotus Wannabe-Mod :< Level: 59 Posts: 1271/1657 EXP: 1648646 For next: 24482 Since: 03-15-04 From: Seattle Since last post: 6 hours Last activity: 4 hours |
| ||
Or my preferred way: Right-click a directory and get a command prompt like that. You need to do something with the registry, but here's a file that should do it automatically: http://mike.warpedbelief.com/crap/cmdprmpt.reg |
|||
neotransotaku Baby Mario 戻れたら、 誰も気が付く Level: 87 Posts: 2746/4016 EXP: 6220548 For next: 172226 Since: 03-15-04 From: Outside of Time/Space Since last post: 11 hours Last activity: 1 hour |
| ||
so, that's how they put stuff in the global right-click list... I've always wondered how they did that... | |||
HyperLamer <||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 3837/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||
Yeah, but with that you have to go back to the parent directory and right-click it. It'd be much nicer if you could just right-click in the file list itself. Plus I tend to just keep one DOS box open all the time. | |||
FreeDOS Lava Lotus Wannabe-Mod :< Level: 59 Posts: 1273/1657 EXP: 1648646 For next: 24482 Since: 03-15-04 From: Seattle Since last post: 6 hours Last activity: 4 hours |
| ||
Well... normally, Explorer has that left-hand list of directories. | |||
neotransotaku Baby Mario 戻れたら、 誰も気が付く Level: 87 Posts: 2749/4016 EXP: 6220548 For next: 172226 Since: 03-15-04 From: Outside of Time/Space Since last post: 11 hours Last activity: 1 hour |
| ||
i don't have that enabled...takes up too much space in the explorer window. It's weird though since I did like the file manager for Win 3.1 | |||
FreeDOS Lava Lotus Wannabe-Mod :< Level: 59 Posts: 1276/1657 EXP: 1648646 For next: 24482 Since: 03-15-04 From: Seattle Since last post: 6 hours Last activity: 4 hours |
| ||
So did I... I copied WINFILE.EXE from WinNT4 to my Win2k. I like it better I'd upload it, but I'm not sure how strict the warez rules are. EDIT It's in Service Pack 6a. I think it's in CAB format, but 7-Zip can open it (edit again: DO NOT downlod the express version, download the "network" one, the whole service pack) (edited by FreeDOS on 03-21-05 11:22 PM) (edited by FreeDOS on 03-21-05 11:22 PM) |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - Opening exe Files problem. | | | |