Computer Hope

Microsoft => Microsoft DOS => Topic started by: lordoftheplat on March 21, 2007, 05:39:19 AM

Title: creating new files?
Post by: lordoftheplat on March 21, 2007, 05:39:19 AM
i was wondering how do u make a file that is .png
that is empty
i want the name to be
Cursor0000.png
Cursor0001.png
Cursor0002.png
Cursor0003.png
Cursor0004.png
Cursor0005.png
Cursor0006.png
Cursor0008.png
Cursor0009.png
Cursor00010.png
Title: Re: creating new files?
Post by: Carbon Dudeoxide on March 21, 2007, 07:00:06 AM
Then in a batch file you can put:
Quote
@echo off
create>>"%userprofile%\desktop\Cursor0000.png"
create>>"%userprofile%\desktop\Cursor0001.png"
create>>"%userprofile%\desktop\Cursor0002.png"
create>>"%userprofile%\desktop\Cursor0003.png"
create>>"%userprofile%\desktop\Cursor0004.png"
create>>"%userprofile%\desktop\Cursor0005.png"
create>>"%userprofile%\desktop\Cursor0006.png"
create>>"%userprofile%\desktop\Cursor0007.png"
create>>"%userprofile%\desktop\Cursor0008.png"
create>>"%userprofile%\desktop\Cursor0009.png"
create>>"%userprofile%\desktop\Cursor00010.png"
exit

If you double click the .png file, it will say 'No preview available' because it is empty. Just right click the file and click edit and you should be in paint and you can do whatever you want with it.

Note: the 'create' is in the code because i needed something behind the '>>'.
Title: Re: creating new files?
Post by: soybean on March 21, 2007, 07:18:59 AM
lordoftheplat, may I make a suggestion regarding the image in your signature block?  Your image is over 113.29KB.  By merely pasting it into Paint and saving as a JPEG file, the file size drops to 20.7KB, or nearly 1/6 the file size of your current image.  And, it will look exactly the same.  
Title: Re: creating new files?
Post by: lordoftheplat on March 21, 2007, 07:21:08 AM
uh....
"create" isnt usable in ms-dos...
it doesnt exist
there is no such thing in sys32 which is called
"create.com"
Title: Re: creating new files?
Post by: Carbon Dudeoxide on March 21, 2007, 07:25:06 AM
Quote
Note: the 'create' is in the code because i needed something behind the '>>'.

Even if the 'create' was changed to 'cheese' you will still get 11 blank png files, lol
Title: Re: creating new files?
Post by: lordoftheplat on March 21, 2007, 07:26:21 AM
dont get you explain?
so it should start with
>>
Title: Re: creating new files?
Post by: lordoftheplat on March 21, 2007, 07:30:10 AM
ok i get it so the code can just start with >> cuz ms-dos doesnt allow you to
UNDERSTOOD!
Title: Re: creating new files?
Post by: Carbon Dudeoxide on March 21, 2007, 07:33:42 AM
lol
In this code [highlight]>>"%userprofile%\desktop\file.png"[/highlight]
[highlight]>>[/highlight] means it saves the file somewhere
[highlight]%userprofile%\desktop\ [/highlight]is the path of where the file is to be saved
[highlight]file.png[/highlight] is the filename and filetype to be saved as
You want a blank file so you can't put
[highlight]echo. "%userprofile%\desktop\file.png"[/highlight]
because it will create a line in the png file making it not work.
because 'create' or 'cheese' is not a recognized code, nothing happens and it creates a file (png) which has nothing in it.

Simple enough?
Title: Re: creating new files?
Post by: Carbon Dudeoxide on March 21, 2007, 07:35:25 AM
Quote
ok i get it so the code can just start with >> cuz ms-dos doesnt allow you to
UNDERSTOOD!

Thats why you save it as a BATCH FILE.........................and plz do what Soybean suggested to do.... ;)
Title: Re: creating new files?
Post by: lordoftheplat on March 21, 2007, 07:38:26 AM
ok wait wait i got another problem so now i have created the .png is there
a way where i can add and image into it with a batch file
eg. i have a file name
cursor.png
but i want 10 of those file
wif
Cursor0000.png
Cursor0001.png
Cursor0002.png
Cursor0003.png
Cursor0004.png
Cursor0005.png
Cursor0006.png
Cursor0008.png
Cursor0009.png
Cursor00010.png
[size=22]
btw  IT IS AREADY JPEG and seriously it wont look the same the quality will drop
drasticly[/size]
Title: Re: creating new files?
Post by: Carbon Dudeoxide on March 21, 2007, 07:44:00 AM
So you want to have an image already in it?? Because that isn't possible.............

and also get rid of that scroll bar next to your image, suggest getting rid of the text above that DRAGON MAGE picture
Title: Re: creating new files?
Post by: lordoftheplat on March 21, 2007, 07:49:39 AM
[size=24]TOPIC CLOSED[/size]
Title: Re: creating new files?
Post by: ghostdog74 on March 21, 2007, 08:00:20 AM
to create empty file
Code: [Select]
copy nul newfile
Title: Re: creating new files?
Post by: soybean on March 21, 2007, 08:00:52 AM
Nope, it'll look just as good, see (20.1KB):
(http://i7.photobucket.com/albums/y256/farmpond/forums/dragmagebluecopy2.jpg)
Title: Re: creating new files?
Post by: lordoftheplat on March 21, 2007, 08:03:55 AM
soybean haha funny...ask anyone who have proper eyes they will say that has horrible graphics
Title: Re: creating new files?
Post by: soybean on March 21, 2007, 08:07:44 AM
Well, I still have "proper eyes" and I don't see a difference.  I'd like to hear comments from others on this.
Title: Re: creating new files?
Post by: lordoftheplat on March 21, 2007, 08:12:38 AM
ok so u can post the two pictures in a maybe a forum art place and say compare their looks
Title: Re: creating new files?
Post by: patio on March 21, 2007, 08:17:16 AM
They look the same to me...

I prefer the one without the goofy scrollbar.
Title: Re: creating new files?
Post by: soybean on March 21, 2007, 08:19:16 AM
Let's put'em right next to each other:
Yours
(http://i7.photobucket.com/albums/y256/farmpond/forums/dragmagebluecopy.jpg)
Mine
(http://i7.photobucket.com/albums/y256/farmpond/forums/dragmagebluecopy2.jpg)

Now, tell me how mine is worse than yours.
Title: Re: creating new files?
Post by: lordoftheplat on March 21, 2007, 08:22:25 AM
the bottom one is the one tat u converted and it is blur and its darker
Title: Re: creating new files?
Post by: WillyW on March 21, 2007, 10:39:26 AM

They look the same to me.


Quote
the bottom one is the one tat u converted and it is blur

Where?

Quote
and its darker

Where?
Title: Re: creating new files?
Post by: Carbon Dudeoxide on March 22, 2007, 04:06:46 AM
lol no, the one soybean looks exactly the same as yours. Believe me, I checked...carefully...
Title: Re: creating new files?
Post by: lordoftheplat on March 22, 2007, 05:09:59 AM
ok u guys have very bad eye sight!
see the small guy with wings? THAT IS BLURED
and the words "dragon mage" is DARKENED OMGGGGGGG
Title: Re: creating new files?
Post by: ghostdog74 on March 22, 2007, 05:25:27 AM
what's this with the avatar argument? if the forum can restrict the size of avatar one can have, then problem solved.
Title: Re: creating new files?
Post by: lordoftheplat on March 22, 2007, 05:26:56 AM
lol u should know that all the sig's pic are not uploaded onto the server of computerhope but somewhere else....
Title: Re: creating new files?
Post by: Carbon Dudeoxide on March 22, 2007, 06:07:07 AM
Quote
Let's put'em right next to each other:
Yours
(http://i7.photobucket.com/albums/y256/farmpond/forums/dragmagebluecopy.jpg)
Mine
(http://i7.photobucket.com/albums/y256/farmpond/forums/dragmagebluecopy2.jpg)

Now, tell me how mine is worse than yours.

ok fine yours is slightly sharper than soybeans but honestly, I wouldn't care about it.
Title: Re: creating new files?
Post by: lordoftheplat on March 22, 2007, 06:16:49 AM
seems like u havnt heard of perfection before
Title: Re: creating new files?
Post by: Carbon Dudeoxide on March 22, 2007, 06:51:26 AM
Ok, you're sounding like one is perfect and clear and the other one is dull and boring and blurred. I don't see that on my monitor so perhaps it is the monitors you are using that are different. Just a thought.
Title: Re: creating new files?
Post by: lordoftheplat on March 22, 2007, 07:12:40 AM
hmm i wish i could change the comp lol
that might make me change my mind on changing the sig:)
Title: Re: creating new files?
Post by: Carbon Dudeoxide on March 22, 2007, 07:33:58 AM
you could probably get rid of 'I=' in your signature. Then the 'quote: Goofy Scrollbar' would go away. Then i don't really care what you do about your picture  ;)
Title: Re: creating new files?
Post by: lordoftheplat on March 22, 2007, 07:47:55 AM
why does it matter?
Title: Re: creating new files?
Post by: WillyW on March 22, 2007, 08:45:17 AM
Quote
why does it matter?


Are you on a dial-up connection?
Title: Re: creating new files?
Post by: lordoftheplat on March 22, 2007, 08:48:09 AM
no...why?
Title: Re: creating new files?
Post by: WillyW on March 22, 2007, 08:53:14 AM
Quote
no...why?


Many are.

It would be much more courteous to them if they did not have to wait while a huge picture file is loaded.

People come here for advice, help, tips, - to learn something.
What does that picture file - not just once,  but on every post -  offer to them?

Title: Re: creating new files?
Post by: lordoftheplat on March 22, 2007, 08:55:10 AM
Quote
Quote
no...why?


Many are.

It would be much more courteous to them if they did not have to wait while a huge picture file is loaded.

People come here for advice, help, tips, - to learn something.
What does that picture file - not just once,  but on every post -  offer to them?


i suppose they could read the words and not look at the picture?
Title: Re: creating new files?
Post by: WillyW on March 22, 2007, 09:06:22 AM
Quote


... if they did not have to wait while a huge picture file is loaded.



i suppose they could read the words and not look at the picture?


Read what I wrote again.


Title: Re: creating new files?
Post by: Carbon Dudeoxide on March 23, 2007, 03:29:10 AM
Quote
Quote
Quote
no...why?


Many are.

It would be much more courteous to them if they did not have to wait while a huge picture file is loaded.

People come here for advice, help, tips, - to learn something.
What does that picture file - not just once,  but on every post -  offer to them?


i suppose they could read the words and not look at the picture?
The page won't load anyone elses posts until the post it's downloading finishes. People on Dial-up would have to wait for your picture to load.