Moving Files and Variable Issues

I have watched so many videos online and none of the “solutions” are working.
First all the videos use “Assign” to assign the file path to a variable… "Assign does not exist in Studio Web, Studio X or Studio for me all I have is “Set Variable Value”

I created 2 variables both strings “FileFullPath” and “DestinationFullPath” I set the varible “FileFullPath” to “C:\Users\pcuser\Documents\Move From Here\billy-mays.jpg” and the “DestinationFullPath” to “C:\Users\pcuser\Documents\Move To Here”

image

i then used “Move File” to move the file in Move From Here to the Destination to the Destination Folder and I get this error
image
image

• The selected value Is Incompatible with
the property type.
Complier error(s) encountered processing
expression “FlleFullPath”.(2): error
B00512: Option Strict On disallows
Implicit conversions from ‘String’ to
‘!Resource’.
• The selected value Is Incompatible with
the property type.
Complier error(s) encountered processing
expression “DestlnatlonFuliPath” .(2): error
B00512: Option Strict On disallows
Implicit conversions from ‘String’ to
‘!Resource’.

In all the tutorials this works straight out the gate with the file paths set as strings.

Ultimately I need to find the Newest .xls file in the Downloads folder and move it to a folder in Google Drive…

Please respond back like I’m 5 years old because I’m very new to all this and I have not understood a single answer in any of these forums.

Thank you in advance for your patience and help.

@Ray_Ringwall

Welcome to the community

First let me take all the things separately and not confuse you

  1. Studio,studiox and studio web are 3 different things…which might have same activities but with slightly different names
  2. Assign is present only in studio in studio web and studio x same functionality is present for set variable value
  3. The screenshots you are showing are from studio web and may be the videos you are referring to are studiox or studio
  4. Studiox and studio can work on local machiens but studio web works on cross platform so normal locations cannot be used in then and that is the reason you are unable you give locations as string
  5. To convert a string to ilocalresource type…one way is to use path exists activity where you can give an input as string and then you get teo output variable one as boolean and other as ilocalresource which. Can be used in move file in studio web
  6. For the use case you are talking about…ideally in studio web if you are downloding something from a webpage tehn you can use wait for download which will give you an output variable again which is of type ilocalresource and can be used in move file
  7. If you are trying to work on windows then please use studiox or studio and not studioweb …that way you might feel little easy with these activities
  8. If you are talking about downalods folder and all then it looks like you are working on windows only so prefer studio or studiox over studi web

Hope this gives some clarity to you

Cheers

Haha…I already have same your error, but it’s from the others activity. So you can use “Path Exist” activity, input is String path, output is IResource, and then you can paste this output to From/To move file.