Thanks for the code aGerman (even if it is a bit much just to perform simple arithmetic)
BTW: I have just completed my first real C++ project, a program which takes the current system time, converts it to decimal time, and then displays and updates this value constantly.
Search found 15 matches
- 12 Dec 2010 19:03
- Forum: DOS Batch Forum
- Topic: C++ anyone?
- Replies: 12
- Views: 20635
- 12 Dec 2010 02:34
- Forum: DOS Batch Forum
- Topic: C++ anyone?
- Replies: 12
- Views: 20635
Re: C++ anyone?
Hi maniacal, A day have 86400 seconds, that are 86.400.000 milli seconds, that is a small number, even for the set /a arithmetic jeb Apoligies. The problem occured when trying to convert from the milliseconds passed today to the decimal milliseconds passed today (involves dividing by 0.864, only ac...
- 11 Dec 2010 09:45
- Forum: DOS Batch Forum
- Topic: C++ anyone?
- Replies: 12
- Views: 20635
C++ anyone?
Recently I ran into some trouble with batch whilst trying to convert the system time to decimal time (metric time). The problem occured when trying to convert from the milliseconds passed today to the decimal milliseconds passed today (involves dividing by 0.864, only achievable with set /a %Decimal...
- 11 Dec 2010 08:34
- Forum: DOS Batch Forum
- Topic: Please Help
- Replies: 3
- Views: 4356
Re: Please Help
Way to drop the subtle HL reference...
My guess? User error... somehow.
My guess? User error... somehow.
- 30 Nov 2010 07:08
- Forum: DOS Batch Forum
- Topic: How do I find the password to my wireless router?
- Replies: 2
- Views: 4098
Re: How do I find the password to my wireless router?
Access your router by typing your ip address (can be found by going to http://www.whatismyip.com/ ) into your internet browser. If you have not accessed the router before, the username and password it requires will be the default ones. The default router username and password may be different depend...
- 30 Nov 2010 06:47
- Forum: DOS Batch Forum
- Topic: Password Encryptor via the %random% function
- Replies: 12
- Views: 12749
Re: Password Encryptor via the %random% function
Yes, it seems the process and code may have room for improvement. Also, it seems that it would be very simple to increase the character limit to perhaps encompass entire text documents just by changing a few values, the only problem being an increased encryption time and an increased file size of th...
- 30 Nov 2010 04:56
- Forum: DOS Batch Forum
- Topic: Password Encryptor via the %random% function
- Replies: 12
- Views: 12749
Re: Password Encryptor via the %random% function
Did a small bit of cleaning by removing the 'blank' altogether. :DEC4 if %num2%==0 set L=" " for /l %%x in (0,1,61) do set /a inc=%%x+1&if %num2%==!inc! set "L=!map:~%%x,1!" set t%num%= if %t%==%num2% set t%num%=%L:"=% if defined t%num% goto DEC3 set /a num2+=1 goto DEC4...
- 30 Nov 2010 03:44
- Forum: DOS Batch Forum
- Topic: Password Encryptor via the %random% function
- Replies: 12
- Views: 12749
Re: Password Encryptor via the %random% function
Ah yes, it appears I had uploaded an older version of the code that didn't interpret spaces. Seems like it would be simple enough to solve as running the product files of your version through my "spacey" version does indeed produce spaces when the solution is 0. Here is the 'spacey' code, ...
- 30 Nov 2010 03:16
- Forum: DOS Batch Forum
- Topic: Password Encryptor via the %random% function
- Replies: 12
- Views: 12749
Re: Password Encryptor via the %random% function
After testing the new code, I have uncovered a problem whereupon the decryption does not interpret a solution of 0 as a space as it would in the original file. So if a user were to input "hello world" as a password, it would be decrypted as "helloworld"
- 30 Nov 2010 02:45
- Forum: DOS Batch Forum
- Topic: Password Encryptor via the %random% function
- Replies: 12
- Views: 12749
Re: Password Encryptor via the %random% function
Thank you very much for this optimised code, I think it's gotten to the point where it's more of your code than mine I see you have replaced much of the code with simple for loops, encompassed all of the headers under a single label, resized the window, added some more user-friendly interface, and g...
- 30 Nov 2010 01:03
- Forum: DOS Batch Forum
- Topic: Password Encryptor via the %random% function
- Replies: 12
- Views: 12749
Re: Password Encryptor via the %random% function
I will consider adding some for loops. When I wrote this batch, I was unaware of the use of FOR which, unfortunately, led to the creation of massive, repetitive, and unnecassary blocks of code in many of my scripts
- 30 Nov 2010 00:49
- Forum: DOS Batch Forum
- Topic: User inputs a variable which is stored within a variable
- Replies: 2
- Views: 4069
Re: User inputs a variable which is stored within a variable
Works perfect, can't believe I overlooked that use of call....
- 30 Nov 2010 00:42
- Forum: DOS Batch Forum
- Topic: Password Encryptor via the %random% function
- Replies: 12
- Views: 12749
Password Encryptor via the %random% function
I have created a password encryptor which can encrypt a password of less than 20 characters containing characters a-z A-Z 0-9 and spaces to produce a password file and a key file. The password is indecipherable without the key. If these two files are stored seperately, I believe that the password is...
- 30 Nov 2010 00:13
- Forum: DOS Batch Forum
- Topic: How to copy file via network
- Replies: 1
- Views: 3813
Re: How to copy file via network
So what you want is to have every computer on your network copy a shared folder called 'game' from com_1 at startup? If so, the location of this folder will be \\com_1\game the command you are looking for should be: copy "\\com_1\game" "D:\game" /y This will copy the contents of ...
- 29 Nov 2010 23:45
- Forum: DOS Batch Forum
- Topic: User inputs a variable which is stored within a variable
- Replies: 2
- Views: 4069
User inputs a variable which is stored within a variable
I recently experienced a problem with the 'set /p variable=' command. Here is the problem code @echo off :begin set /p input=Input: %input% goto begin The intention of this was so that whatever the user inputs will be passed as the next line of code, like the CMD box does. The problem I experienced ...