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 - Rather strange batch file problem | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
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: 4270/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||
Nevermind, DOS is just weird. Instead, maybe someone can tell me why findfirst() isn't working no matter what search pattern I give it? It always just returns -1 and blanks out the ffblk struct. Also wouldn't mind knowing how to read/write environment variables in DOS programs... (edited by R2H2 on 04-23-05 11:45 PM) (edited by R2H2 on 04-23-05 11:57 PM) |
|||
Dish Spiny Level: 38 Posts: 355/596 EXP: 355646 For next: 14801 Since: 03-15-04 From: Disch Since last post: 18 days Last activity: 18 days |
| ||
Command Line is not DOS I really REALLY hope you're not actually coding DOS programs. ;P But anyway I don't have any real info to give you, since I avoid command line like the plague. |
|||
loadingNOW Red Paragoomba Level: 14 Posts: 56/61 EXP: 10382 For next: 2689 Since: 07-15-04 From: Silent Hill Since last post: 136 days Last activity: 3 days |
| ||
in case you're talking about comandline... main(int argc, TCHAR* argv[], TCHAR* envp[]) i guess you know the first 2 ... and yes envp[] ist the environment pointer. Also when using comandline you can use windows api, too (i tend to use CreateProcess Read/WriteProcessMemory quite a lot). And i actually prefer command line simply because i don't have to waste my time bothering with boring gui code. |
|||
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: 4281/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||
Some of these I would like to be able to run in pure DOS (not possible with all of them, but yeah). As for the batch file problem, apparently I didn't fix it after all. XP's command line seems to be doing this really strange and stupid thing with my parameters. Observe: program.exe *.cow - Arguments are '*.cow' assuming there are no .cow files nearby. program.exe *.exe - Arguments are 'program1.exe program2.exe program3.exe' etc, listing whatever files match the given pattern. I need to see the pattern itself, not a list of files. (I got findfirst() to work though, and might I say that thing REALLY needs a way to filter by attributes. ) Also, I'm wondering how possible it is to do various things with console windows, such as: -Open one console window and have several different programs output to it (specially designed to do so). -Have a program spawn console windows and output to them; prefferably being able to create a few different ones and show different things in them simultaneously. It'd really help with some of the bigger projects that don't have real GUIs yet. |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - Rather strange batch file problem | | | |