Re: convert FAT32 to NTFS problem?
- From: "Marty List" <usenet@xxxxxxxxxxxx>
- Date: Fri, 4 Nov 2005 05:46:34 -0700
"roopeman" <roopeman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8109585A-A94E-4A3F-B691-5DBBC6092944@xxxxxxxxxxxxxxxx
>> Hi, Dear all, i wrote below script, i want to convert remote host
>> Harddisk
>> format from FAT32 to NTFS, it 's failed in remote hosts, but succeed in
>> local host. would you please check it for me ? with many thanks !
Your script is always launching convert.exe on the local machine. The
script connects to the remote computer using WMI, and gets the drives of the
remote computer, but launches convert.exe onthe local system, with the
remote systems's drive letter.
Your script uses oShell.Run to launch convert.exe, but look at where oShell
comes from:
Set oShell = Wscript.CreateObject("WScript.Shell")
So when you call the .Run method, how is it suppose to know you want it
launched on the remote system?
Try WMI's Win32_Process.Create method, which can be used against a remote
system:
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_process.asp
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/create_method_in_class_win32_process.asp
.
- Prev by Date: Re: Problem with Copying file by DateLastModified vbs
- Next by Date: Regexp Matching...
- Previous by thread: Re: Problem with Copying file by DateLastModified vbs
- Next by thread: Re: convert FAT32 to NTFS problem?
- Index(es):
Relevant Pages
|