Re: convert FAT32 to NTFS problem?
- From: "Marty List" <usenet@xxxxxxxxxxxx>
- Date: Mon, 7 Nov 2005 09:21:31 -0700
"roopeman" <roopeman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4E99148D-059A-469E-9563-44DA62996A80@xxxxxxxxxxxxxxxx
> this is my last version, anybody can check it for me ? thanks !
It's a good thing (bad thing?) that VBScript is case insensitive.
This line has a typo:
sDiskLetter = obiLogicalDisk.DiskID
Change *both* instances of this line:
objWMIservice.Create("cmd.exe /c convert.exe"&sDiskLetter&":/fs:ntfs")
to this:
sCommandLine = "cmd.exe /c convert.exe " & sDiskLetter & " /fs:ntfs"
WScript.Echo "DEBUG: " & sCommandLine
objWMIservice2.Create(sCommandLine)
You have two variables with very similar names (objWMIservice and
objWMIservice2). You should choose more descriptive names so you can determine
what they are used for.
.
- References:
- Re: convert FAT32 to NTFS problem?
- From: Marty List
- Re: convert FAT32 to NTFS problem?
- From: roopeman
- Re: convert FAT32 to NTFS problem?
- From: roopeman
- Re: convert FAT32 to NTFS problem?
- Prev by Date: Re: fun with odbc... :-(
- Next by Date: Compare profile/logon script on accounts on old domain/AD domain
- Previous by thread: Re: convert FAT32 to NTFS problem?
- Next by thread: Re: convert FAT32 to NTFS problem?
- Index(es):