-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 10 makes INI file hard to access #35
Comments
Hi Joe, Thanks for your interest - to be able to help, I need a bit more information:
Thanks |
I use a program I wrote back in the 80s for my monthly church auction. I need to print invoices both during the sale and of course at the end. I am trying to get the print option to process as soon as a page is completed. I have noted that the control codes I use for my line printer will not work on my newer HP printer I have connected via my local network. The following program is what I am using to test the function of the option. 10 PRINT"This program will try to print 3 pages of numbered lines." PC-BASIC private configuration file.Edit this file to change your default settings or add presets.Changes to this file will not affect any other users of your computer.[pcbasic] Use the [pcbasic] section to specify options you want to be enabled by default.See the documentation or run pcbasic -h for a list of available options.for example (for version '15.08.11'):allow-code-poke=Falsealtgr=Trueappend=Falseaspect=4,3border=5caption=PC-BASICcapture-caps=Falsecas1=cga-low=Falsecodepage=437 ; choices: 1258, 437, 720, 737, 775, 806, 850, 851, 852, 853, 855, 856, 857, 858, 860, 861, 862, 863, 864, 865, 866, 868, 869, 874, 932, 934, 936, 938, 949, 950, Georgian-academy, Georgian-ps, Iransystem, Kamenicky, Mazovia, alternativnyj, armscii8a, big5-2003, big5-hkscs, iscii-as, iscii-be, iscii-de, iscii-gu, iscii-ka, iscii-ma, iscii-or, iscii-pa, iscii-ta, iscii-te, koi8-r, koi8-ru, koi8-u, mik, osnovnoj, pascii, ruscii, russup3, russup4ac, russup4na, visciicom1=com2=config=convert=copy-paste=left,middle ; choices: left, middle, right, nonectrl-c-break=Truecurrent-device=Zdebug=Falsedimensions=Nonedouble=Falseexec=font=unifont,univga,freedos ; choices: cga, cgathin, freedos, mda, olivetti, tandy1, tandy2, unifont, univga, vgafullscreen=Falsehelp=Falseinput=interface= ; choices: , none, cli, ansi, text, graphicalkeys=load=logfile=lpt1=PRINTER:lpt2=lpt3=map-drives=Falsemax-files=3max-memory=65534,4096max-reclen=128monitor=rgb ; choices: rgb, composite, monomono-tint=255,255,255mount=nobox=Falsenokill=Falsenosound=Falseoutput=pcjr-term=peek=pen=left ; choices: left, middle, right, noneprint-trigger=pagequit=Falsereserved-memory=3429resume=Falserun=scaling=smooth ; choices: smooth, native, crispserial-buffer-size=256shell=nonestate=strict-hidden-lines=Falsestrict-newline=Falsestrict-protect=Falsesyntax=advanced ; choices: advanced, pcjr, tandytext-width=80 ; choices: 40, 80utf8=Falseversion=Falsevideo=vga ; choices: vga, ega, cga, cga_old, mda, pcjr, tandy, hercules, olivettivideo-memory=262144wait=FalseTo add presets, create a section header between brackets and put theoptions you need below it, like this:[your_preset]border=0You will then be able to load these options with --preset=your_preset.If you choose the same name as a system preset, PC-BASIC will use youroptions for that preset and not the system ones. This is not recommended. |
Note, you probably know, all the large bold print lines are preceded by a hash-tag (#) |
Does the |
Another thing - what happens if you add this:
|
No, it does not run my auction.txt program. The CHR$(12) is used in my Auction program, but it only results in a small heart shaped character being printed and then the data for the next page begins. I can work around that by keeping track of the lines printed. |
It seems maybe the |
I tried copying the INI file to the appdata\local dir, then to appdata\local\pcbasic and finally to appdata\local\pcbasic\data (where the default file resides), all with the same result |
C:\Users\joe\AppData\Roaming\pcbasic is the path |
The file you make changes to should be the one in \AppData\Roaming, changing the files in Local or changing the default file won't have an effect. You also do need the Can you try starting from the Windows command prompt with the |
I have had a problem starting pcbasic from the command prompt. I'll try again, but if you could tell me if I need to put a path name before pcbasic, that might help. |
I tried starting it from c:\users\joe and get the reply pcbasic is not recognized as an internal or external command... |
Finally, I was able to get somewhere. I used the path c:\users\joe\appdata\local\pc-basic>. When I entered the command pcbasic --print-trigger=page, the screen displayed the window for pcbasic and then collapsed it, reporting "file not found" |
If I enter just pcbasic, the same thing happens. ERROR: File not found |
OK, apparently it is picking up one of your INI files and trying to run a file that's not there. Try
with nothing after the |
GREAT! That brought up the pcbasic window, but I couldn't load my program. It did not find any of them. I wrote a quick program to test the page print function and it worked! I can move my programs now and try to make a new shortcut to run pcbasic. Are you familiar with the chr that is printed when I issue the CHR$(12) command and is there a way to supress it? |
I have to go out for the day. I will check back later. Thanks so much for all your help. |
OK, so it seems it works, but PCBASIC doesn't see your To identify the issue with the I'm not sure how Windows 10 treats that location as I don't have a Windows 10 machine to try it on. It seems to work OK in Windows 7. However, some versions of Windows make this location hidden, (which is very annoying, since Microsoft actually recommend this as the location for configuration files!). So you may need to unhide it first. I don't know of a way to suppress a character being printed for |
Windows 10 will not allow changes to be made to its shortcuts. I found the INI file that I could get pcbasic to load, it was the one I copied to appdata\local\pcbasic. I created a sub-dir Auction, and put my program there. Then changed the options to run from the sub-dir and all seems OK for now. I will run further tests later. |
Hi, thanks for the background. I'm glad it works now. I'll have to check if I can make this more intuitive in Windows 10, but I would need to be able to try it on that OS which is currently not an option. As for BASIC-like development platforms for Windows, what comes to mind is Microsoft's VB.NET which is freely available as part of .NET - I think Visual Studio Community or whatever they call it now has development tools for it. |
Can't reproduce on Windows 10 - the INI fle shortcut is accessible and changes to the file can be saved and are seen by PC-BASIC. The "start in" location is the user home folder, which is OK. |
moved from robhagemans/robhagemans.github.io@532e6c3#commitcomment-21778772
This is not the place for my comments, but this is the first place I found that might get a response from Rob. Your PC-BASIC looks like it will allow me to continue to use my 35 year old programs. Great! the problem I have is the limit on printing. I cannot get the print-trigger=page option to work. I am using windows 10. I found and made changes to the INI file. Nothing seems to have effect. I went so far as to put the options in the Defailt file, still no change. I m unable to start PCBASIC from my command prompt either. Any Help? I have joined GitHub as BigJoe3, Thanks
The text was updated successfully, but these errors were encountered: