How do I Convert txt to cmd? 4 replies

Please wait...

RadioShackRob

Radio Shack, Do Shit

50 XP

30th October 2007

0 Uploads

725 Posts

0 Threads

#1 10 years ago

Just wondering how to take this command....

C:\g1\adb forward tcp:1080 tcp:1080

and Convert it into a simple icon on my desktop that I can open up rather then opening cmd and copy pasting.




Nemmerle Forum Mod

Voice of joy and sunshine

298,628 XP

26th May 2003

0 Uploads

28,166 Posts

6 Threads

#2 10 years ago

Dunno. Tried converting it into a bat file?

Open notepad, paste the command into there, go to saveas select type 'All files' and in the encoding dropdown box select ANSI, save with the .bat extension after the filename. For example 'Wierd_TCP_thing.bat' (minus the '' of course)




Junk angel

Huh, sound?

166,880 XP

29th January 2007

0 Uploads

15,678 Posts

0 Threads

#3 10 years ago

remember to also save it as any file. as otherwise it will be .bat.txt

I think you can also save it as "blabla.bat" and notepad will automatically know that you want the bat to be there. As long as you write the quotation marks.

EDIT

Just tried it with the quotation marks. it works.




*Daedalus

A Phoenix from the ashes

50 XP

18th April 2006

0 Uploads

3,091 Posts

0 Threads

#4 10 years ago

Yup, that should work fine. I used to do the same thing with my old Vista laptop to kill excess processes (had 1GB of RAM. ;))




RadioShackRob

Radio Shack, Do Shit

50 XP

30th October 2007

0 Uploads

725 Posts

0 Threads

#5 10 years ago

Worked great, thx guys