Quote:
I don't see where winrar is involved
Foxi, I am using Winrar to create a sfx .exe file as I said in my Post...
also as i said the script works great, it creates the files to current or local..
but now I figured out what the issue is and have got it working with the sfx file
basically all that needed to be done was echo> to the desktop per updated code below ...
Code:
::==CREATE DISKPART SCRIPT FILE==::
echo>>%userprofile%\desktop\Script.txt Select Disk %disk%
echo>>%userprofile%\desktop\Script.txt Clean
echo>>%userprofile%\desktop\Script.txt Create Partition Primary
echo>>%userprofile%\desktop\Script.txt Select Partition 1
echo>>%userprofile%\desktop\Script.txt Active
echo>>%userprofile%\desktop\Script.txt Format FS=ntfs
echo>>%userprofile%\desktop\Script.txt Assign letter=%usb% noerr
echo>>%userprofile%\desktop\Script.txt End
::==============================================+
::==CREATE INSTALLER BATCH SCRIPT==::
echo>>%userprofile%\desktop\USB.Format.Tool.bat @echo off
echo>>%userprofile%\desktop\USB.Format.Tool.bat color e
echo>>%userprofile%\desktop\USB.Format.Tool.bat title W7 Bootable USB
echo>>%userprofile%\desktop\USB.Format.Tool.bat DiskPart.exe /s Script.txt
echo>>%userprofile%\desktop\USB.Format.Tool.bat echo.
echo>>%userprofile%\desktop\USB.Format.Tool.bat echo.
echo>>%userprofile%\desktop\%userprofile%\desktop\USB.Format.Tool.bat echo +=================================================+
echo>>%userprofile%\desktop\USB.Format.Tool.bat echo + Creating a Bootable USB Flash Drive. +
echo>>%userprofile%\desktop\USB.Format.Tool.bat echo +=================================================+
echo>>%userprofile%\desktop\USB.Format.Tool.bat echo.
echo>>%userprofile%\desktop\USB.Format.Tool.bat xcopy %dvd%:\*.* %usb%:\ /s/e/h/f/c/q
echo>>%userprofile%\desktop\USB.Format.Tool.bat echo.
echo>>%userprofile%\desktop\USB.Format.Tool.bat echo.
echo>>%userprofile%\desktop\USB.Format.Tool.bat cls
echo>>%userprofile%\desktop\USB.Format.Tool.bat echo Your Thumbdrive OS Completed Successfully...
echo>>%userprofile%\desktop\USB.Format.Tool.bat echo.
echo>>%userprofile%\desktop\USB.Format.Tool.bat pause
echo>>%userprofile%\desktop\USB.Format.Tool.bat exit
::==============================================+