You are not logged in.
Pages: 1
I'm new to VBS. I want to adapt the following script to put a folder on a Windows desktop and then capture path including backslash so that I can simply combine with a filename (folderpath\ & "filename") to get a filepath. Can I ask some Qs (>>>) about the following script I'm trying to adapt:
#Declare some variables we will need
Set Variable [ $folder; Value:"Exports" ]
Set Variable [ $path; Value:Get( DesktopPath ) ]
#Create on Windows
1. If [ Abs( Get( SystemPlatform )) -1 /*Windows*/ ]
2. Set Variable [ $folderPath; Value:Substitute ( "/" & $winpath; ["//"; ""]; ["/"; "\\"]) ]
3. Send Event [ open document; "cmd.exe /C MKDIR " & Quote( $winpath & $folder & "\\"); Application Name: “<unknown>” ]
[ Wait for completion ]
3.
a) Shouldn't "\\" be "\" Why use 'Quote( $folderPath & $folder..' shouldn't it be $path instead of $folderpath?
b) To get a folderpath would it be: 2. Set Variable [ $folderPath; $winpath & $folder & "\\")?
Offline
Pages: 1