»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-13-2003, 10:31 PM   #1 (permalink)
Registered User
 
joker_927's Avatar
 
Join Date: May 2002
Location: California, USA
Posts: 1,740
joker_927 is on a distinguished road
Make an EXE?

I have a cfg file (for hl to be more specific) that I need to put into a psecific folder onto my friends computer. He has no clue how to put it there as he is pretty computer illiterate. I coudln't think of a way to use a simple batch file (maybe you know). Is there any other way for me to automatically place let's say...

Happy.cfg is on his desktop.
I want it to be in c:\files\test\

How do I put it there remotley, or make some script for him to run taht puts it there?

If this makes since, thank you.

__________________
Gateway Top-of-the-line PC = $2014
Home built top-of-the-line PC = $928
Exact clones...

Moral = Don't build your own PC, thus letting me save more money than you!
joker_927 is offline   Reply With Quote
Old 10-13-2003, 10:39 PM   #2 (permalink)
Registered User
 
soulja's Avatar
 
Join Date: Apr 2003
Location: Petersburg, Va
Posts: 1,791
soulja is on a distinguished road
Send a message via AIM to soulja
at first i thought u wanted to make a virus, lol
soulja is offline   Reply With Quote
Old 10-13-2003, 11:16 PM   #3 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 6,533
John Prophet is on a distinguished road
Does the c:\files\test folder already exist?

Well first he has to get tot he c:\windows\desktop directory, lol

then fromthere its just

"move /y happy.cfg c:\files\test"

the y is just a switch to surpress it having a user prompt..I think if the folder c\files\test already exists, you dont need the /y anyway, but it wont hurt, lol.

JP

Maybe someone else can make a cool batch file, it shouldnt be too hard.
__________________
"Even a fool is thought to be wise if he is silent"
John Prophet is offline   Reply With Quote
Old 10-13-2003, 11:19 PM   #4 (permalink)
Registered User
 
davidamarkley's Avatar
 
Join Date: May 2002
Location: Joplin, MO
Posts: 2,208
davidamarkley is on a distinguished road
Send a message via ICQ to davidamarkley Send a message via AIM to davidamarkley
Hey, joker...

All you need to do is Right-click the link below and click "Save as..." and save it as RUNME.bat or WHATEVER.bat, just "something.bat" will do.

**LINK** (remember, right-click and save as...)

Then, once you have the .bat file saved onto your computer, right-click and select "Edit" and change only what I tell you to below:
  • Change all the references to "Happy.cfg" to the name of your .cfg file.
  • Change all references to "C:\folder\path" to your entire destination folder path. (i.e. "C:\Half-Life\cstrike\cfg")

After changing the references above, click "File" > "Save" and then you can send the file to your friend. The only thing that he has to do is make sure the .cfg file is in the same directory as your RUNME.bat file. For example, if both files are on the Desktop, it will work fine.

Remember, since you are working in DOS, if the file/folder names are longer than 8 characters, then you want to type in the [/b]first 6[/b] and then a tilde mark ~ than the number 1.

==================================================

BTW, for those who are curious, the code for the batch file is below:
Code:
@ECHO OFF
ECHO Preparing to move configuration file

IF NOT EXIST .\Happy.cfg (
	ECHO Configuration file not found! 
) ELSE (
	move .\Happy.cfg .\Happy
)

IF EXIST .\Happy\Happy.cfg (
	ECHO File moved successfully! 
) ELSE (
	ECHO File NOT moved successfully!
)
It provides some 'idiot-proof' coding. Like the use of real english feedback, and the hiding of the commands it's really performing.

==================================================

If you have any questions, just ask!

HTH,

David

EDIT: I didn't think about the destination folder NOT being there. If he needs to create a new folder, just let me know what that new folder needs to be, and I can put it in there also.

Let me know how this works for ya...
__________________
-David

Last edited by davidamarkley; 10-13-2003 at 11:23 PM.
davidamarkley is offline   Reply With Quote
Old 10-14-2003, 12:47 AM   #5 (permalink)
Registered User
 
joker_927's Avatar
 
Join Date: May 2002
Location: California, USA
Posts: 1,740
joker_927 is on a distinguished road
COOL! thx!

I made a batch file just like that, but it didn't work because I didn't know how to do the .\filename.cfg

I didn't know how to tell it to use whatever directory the file was in.

Thx a lot!
__________________
Gateway Top-of-the-line PC = $2014
Home built top-of-the-line PC = $928
Exact clones...

Moral = Don't build your own PC, thus letting me save more money than you!
joker_927 is offline   Reply With Quote
Old 10-14-2003, 01:13 AM   #6 (permalink)
Registered User
 
davidamarkley's Avatar
 
Join Date: May 2002
Location: Joplin, MO
Posts: 2,208
davidamarkley is on a distinguished road
Send a message via ICQ to davidamarkley Send a message via AIM to davidamarkley
Hey, no problem...

Glad it works for ya...

Also, in the future, you can use ..\filename.cfg to go one directory up from the current dir for the file. And then you can use the ..\..\ etc. to go up and up and up...

David
__________________
-David
davidamarkley is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 06:28 AM.