Windows Scripting Problem - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 09-08-2006, 05:12 PM   #1 (permalink)
Super Techie
 
mBernhardt's Avatar
 
Join Date: Jul 2006
Location: Ohio
Posts: 279
Default Windows Scripting Problem

Here's a fun one for everyone.

I want to run a batch script that will generate a Unicode text file. (.bks to be used with ntbackup)

The purpose of this is I want to send a .bat file to a client which they can run which will generate a backup of key files off their PC so I can take a single file and restore it on a new PC.


I've got everything figured out except how to generate a Unicode text file from a batch file. (ntbackup will only read a Unicode .bks file)


Any ideas would be greatly appreciated. Keep in mind that any 3rd party apps are not an option. All that can be used is what comes standard on Windows 2000. And ultimately it needs to be kept in a single file that can be run through the GUI without needing to pass any command line switches to it.
__________________

__________________
"i would never use a firewall, even without a router protecting me. Firewalls are just wastes of memory."
name omitted to protect the innocent

the cake is a lie
mBernhardt is offline  
Old 09-08-2006, 05:44 PM   #2 (permalink)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default

http://unicodeconvert.sourceforge.net/

convert to unicode from command line
__________________

office politics is offline  
Old 09-08-2006, 05:47 PM   #3 (permalink)
Newb Techie
 
Join Date: Jul 2006
Posts: 21
Default Re: Windows Scripting Problem

Quote:
Originally posted by mBernhardt
Keep in mind that any 3rd party apps are not an option. All that can be used is what comes standard on Windows 2000... without needing to pass any command line switches to it.
Casalen is offline  
Old 09-08-2006, 06:00 PM   #4 (permalink)
Super Techie
 
mBernhardt's Avatar
 
Join Date: Jul 2006
Location: Ohio
Posts: 279
Default

Found it:

cmd /u /c "whatever command you want to > output.txt"

Hells yeah.
__________________
"i would never use a firewall, even without a router protecting me. Firewalls are just wastes of memory."
name omitted to protect the innocent

the cake is a lie
mBernhardt is offline  
Closed Thread

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 Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 11:11 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.